-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (34 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
##
# nasm Makefile
##
# Project info
Project = nasm
UserType = Developer
ToolType = Commands
Install_Prefix = /usr
Extra_Configure_Flags =
Extra_CC_Flags = -mdynamic-no-pic
GnuAfterInstall = post-install install-plist
# It's a GNU Source project
include ./GNUSource.make
Install_Target = install_everything
# Extract the source.
install_source::
ditto . $(SRCROOT)
# Move things to where they were supposed to be.
post-install:
$(MKDIR) -p $(DSTROOT)/usr/bin
$(STRIP) $(DSTROOT)/usr/bin/nasm \
-o $(DSTROOT)/usr/bin/nasm
$(STRIP) $(DSTROOT)/usr/bin/ndisasm \
-o $(DSTROOT)/usr/bin/ndisasm
$(MKDIR) -p $(DSTROOT)/usr/share/man/man1
$(MV) $(DSTROOT)/usr/share/man/man1/nasm.1 \
$(DSTROOT)/usr/share/man/man1/nasm.1
OSV = $(DSTROOT)/usr/local/OpenSourceVersions
OSL = $(DSTROOT)/usr/local/OpenSourceLicenses
install-plist:
$(MKDIR) $(OSV)
$(INSTALL_FILE) $(SRCROOT)/$(Project).plist $(OSV)/$(Project).plist
$(MKDIR) $(OSL)
$(INSTALL_FILE) $(Sources)/COPYING $(OSL)/$(Project).txt