mirror of
https://git.freebsd.org/ports.git
synced 2025-06-20 20:20:30 -04:00
o Portlint o Resolve T_USER conflicts (trap.h in base system) o Properly handle CFLAGS o Add net/dictd-database as RUN_DEPENDS o Bump PORTREVISION Approved by: MAINTAINER
78 lines
2.4 KiB
Text
78 lines
2.4 KiB
Text
--- Makefile.in.orig Fri Jan 12 17:24:29 2001
|
|
+++ Makefile.in Thu Jan 25 23:41:14 2001
|
|
@@ -33,7 +33,7 @@
|
|
srcdir= @srcdir@
|
|
VPATH= @srcdir@
|
|
prefix= @prefix@
|
|
-subdirs= @allsubdirs@ regex # doc -- use rfc2229 instead
|
|
+subdirs= @allsubdirs@ # regex # doc -- use rfc2229 instead
|
|
exec_prefix= @exec_prefix@
|
|
man1_prefix= @mandir@/man1
|
|
man8_prefix= @mandir@/man8
|
|
@@ -57,9 +57,9 @@
|
|
-DDICT_CONFIG_PATH=\"$(conf)\"
|
|
SCFLAGS= @SCFLAGS@
|
|
LDFLAGS= @LDFLAGS@
|
|
-XTRACFLAGS= @WCFLAGS@ @XTRACFLAGS@ @DEFS@ @CPPFLAGS@ -I. -Iregex
|
|
+XTRACFLAGS= @WCFLAGS@ @XTRACFLAGS@ @DEFS@ @CPPFLAGS@ -I. # -Iregex
|
|
XTRALDFLAGS= @WLDFLAGS@ @XTRALDFLAGS@
|
|
-LDLIBS= @LIBS@ -Lregex -lregex
|
|
+LDLIBS= @LIBS@ -lgnuregex # -Lregex -lregex
|
|
|
|
EXES= dict dictd dictzip
|
|
|
|
@@ -75,17 +75,7 @@
|
|
all $(EXES)::
|
|
@for subdir in `echo $(subdirs)`; do \
|
|
echo making in $$subdir; \
|
|
- if [ "$$subdir" = "zlib" ]; then \
|
|
- (cd $$subdir \
|
|
- && $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" libz.a) \
|
|
- || exit 1; \
|
|
- elif [ "$$subdir" = "regex" ]; then \
|
|
- (cd $$subdir \
|
|
- && $(MAKE) CC="$(CC) $(CFLAGS)" lib) \
|
|
- || exit 1; \
|
|
- else \
|
|
- (cd $$subdir && $(MAKE)) || exit 1; \
|
|
- fi; \
|
|
+ (cd $$subdir && $(MAKE)) || exit 1; \
|
|
done
|
|
|
|
all:: $(EXES)
|
|
@@ -116,11 +106,13 @@
|
|
servscan.o: servscan.c servparse.o servparse.h $(HEADERS)
|
|
$(CC) -c $(XTRACFLAGS) $(CFLAGS) $(SCFLAGS) $<
|
|
|
|
-servparse.c: servparse.y
|
|
- $(YACC) -tdv $<
|
|
- cmp -s y.tab.h servparse.h || mv y.tab.h servparse.h
|
|
- cmp -s y.tab.c servparse.c || mv y.tab.c servparse.c
|
|
- -rm -f y.tab.h y.tab.c
|
|
+servparse.c: servparse.h
|
|
+
|
|
+servparse.h: servparse.y
|
|
+ $(YACC) -tdv -b serv $<
|
|
+ cmp -s serv.tab.h servparse.h || mv serv.tab.h servparse.h
|
|
+ cmp -s serv.tab.c servparse.c || mv serv.tab.c servparse.c
|
|
+ -rm -f serv.tab.h serv.tab.c
|
|
|
|
servparse.o: servparse.c $(HEADERS)
|
|
$(CC) -c $(XTRACFLAGS) $(CFLAGS) $(SCFLAGS) $<
|
|
@@ -145,13 +137,13 @@
|
|
install -m 644 dict.1 $(man1_prefix)/dict.1
|
|
|
|
install.dictzip: dictzip
|
|
- install dictzip $(bindir)
|
|
- install -m 644 dictzip.1 $(man1_prefix)/dictzip.1
|
|
+ ${INSTALL_PROGRAM} dictzip $(bindir)
|
|
+ ${INSTALL_DATA} dictzip.1 $(man1_prefix)/dictzip.1
|
|
|
|
install.dictd: dictd
|
|
- install dictd $(sbindir)
|
|
+ ${INSTALL_PROGRAM} dictd $(sbindir)
|
|
if test ! -d $(man8_prefix); then install -d 755 $(man8_prefix); fi
|
|
- install -m 644 dictd.8 $(man8_prefix)/dictd.8
|
|
+ ${INSTALL_DATA} dictd.8 $(man8_prefix)/dictd.8
|
|
|
|
install: $(EXES) install.dict install.dictzip install.dictd
|