349dcec075
- Switch LIB_DEPENDS from math/libgmp-freebsd to math/libgmp4 on FreeBSD 5 only (the base libgmp 2.0.1 on FreeBSD 4 is fine) so this port buils on architectures other than alpha and i386 (tested on FreeBSD/sparc64). - Respect CC and CFLAGS. - Remove broken URL forgotten in Makefile 1.16 and pkg-descr 1.5. - Give maintainership to submitter. Submitted by: marius@alchemy.franken.de Approved by: portmgr
34 lines
805 B
Plaintext
34 lines
805 B
Plaintext
--- Makefile.orig Sun Nov 4 20:48:12 2001
|
|
+++ Makefile Sun Nov 4 20:49:08 2001
|
|
@@ -25,12 +25,12 @@
|
|
#
|
|
# DHIS(c) Dynamic Host Information System Release 5.1
|
|
|
|
-CC=gcc
|
|
-CFLAGS=-Wall -Wformat -I/usr/local/include # -DDONT_FORK
|
|
-LFLAGS=-L/usr/local/lib
|
|
+CC?=gcc
|
|
+#CFLAGS=-Wall -Wformat -I/usr/local/include # -DDONT_FORK
|
|
+#LDFLAGS=-L/usr/local/lib
|
|
CP=cp
|
|
|
|
-INSTALLDIR=/etc/dhis/bin
|
|
+INSTALLDIR=__PREFIX__/sbin
|
|
MODE=700
|
|
OWNER=root
|
|
MKDIR=mkdir -p
|
|
@@ -46,11 +46,11 @@
|
|
all: dhisd genkeys
|
|
|
|
dhisd: $(OBJS)
|
|
- $(CC) $(LFLAGS) -o dhisd $(OBJS) $(LIBS)
|
|
+ $(CC) $(LDFLAGS) -o dhisd $(OBJS) $(LIBS)
|
|
strip dhisd
|
|
|
|
genkeys:
|
|
- $(CC) $(CFLAGS) $(LFLAGS) genkeys.c -DQRC=1 -o genkeys -lgmp
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) genkeys.c -DQRC=1 -o genkeys -lgmp
|
|
|
|
install: dhisd genkeys
|
|
$(MKDIR) $(INSTALLDIR)
|