- no need for separate Makefile-patch
 - nuke static lib
This commit is contained in:
Volker Stolz 2005-09-27 14:03:00 +00:00
parent 05f6fa2a02
commit 48c21d76cf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143626
3 changed files with 6 additions and 23 deletions

View file

@ -28,11 +28,17 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
--libdir=${PREFIX}/lib
CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ARGS= CONF=${EXAMPLESDIR}/dact.conf
MAN1= dact.1
INSTALLS_SHLIB= yes
pre-install:
@${MKDIR} ${EXAMPLESDIR}
@${RM} -f ${WRKSRC}/libdact.a
post-install:
@${CP} -n ${EXAMPLESDIR}/dact.conf ${PREFIX}/etc
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Docs/dact.txt ${DOCSDIR}

View file

@ -1,22 +0,0 @@
--- Makefile.in.orig Tue Jan 18 21:48:30 2005
+++ Makefile.in Tue Jan 18 21:54:30 2005
@@ -25,6 +25,7 @@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
+exampledir= @prefix@/share/examples/dact
CONF = $(sysconfdir)/dact.conf
CFLAGS += -DDACT_CONFIG_FILE=\"$(CONF)\" -DEXEEXT=\"$(EXEEXT)\"
@@ -87,7 +88,10 @@
$(INSTALL) -m 755 dact$(EXEEXT) $(bindir)/dact$(EXEEXT)
install: all install-bin
- $(INSTALL) -m 644 dact.conf $(CONF)
+ mkdir -p $(exampledir)
+ $(INSTALL) -m 644 dact.conf $(exampledir)
+ if [ ! -f $(CONF) ] ; then \
+ $(INSTALL) -m 644 $(exampledir)/dact.conf $(CONF) ; fi
$(INSTALL) -m 644 Docs/dact.1 $(mandir)/man1/dact.1
@MODS@ -$(INSTALL) -m 755 libdact.so $(libdir)/libdact.so
-$(INSTALL) -m 644 libdact.a $(libdir)/libdact.a

View file

@ -2,7 +2,6 @@ bin/dact
@unexec if cmp -s %D/etc/dact.conf %D/%%EXAMPLESDIR%%/dact.conf; then rm -f %D/etc/dact.conf; fi
%%EXAMPLESDIR%%/dact.conf
@exec [ -f %D/etc/dact.conf ] || cp %D/%%EXAMPLESDIR%%/dact.conf %D/etc/dact.conf
lib/libdact.a
lib/libdact.so
%%DATADIR%%/cipher_chaos.so
%%DATADIR%%/cipher_psub.so