1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

- Add LICENSE_FILE

- Switch to options helpers
- Regenerate patches with `make makepatch`
This commit is contained in:
Dmitry Marakasov 2015-11-17 21:31:14 +00:00
parent 8f02b106cd
commit 222b98f7f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=401827
3 changed files with 8 additions and 5 deletions

View File

@ -11,8 +11,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Posadis C++ DNS library
LICENSE= GPLv2 # (or later)
OPTIONS_DEFINE= DOCS EXAMPLES
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
@ -21,17 +20,21 @@ USE_LDCONFIG= yes
PLIST_SUB= VERSION="${PORTVERSION}"
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e \
'/CXXFLAGS/s|-O0|$$CXXFLAGS| ; \
/LIBS=/s|-lstdc++||' ${WRKSRC}/configure
post-install:
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS README TODO
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
${STAGEDIR}${DOCSDIR})
.endfor
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.cpp \
${STAGEDIR}${EXAMPLESDIR})

View File

@ -1,4 +1,4 @@
--- tools/fileclient.cpp.orig
--- tools/fileclient.cpp.orig 2003-02-01 14:29:23 UTC
+++ tools/fileclient.cpp
@@ -20,6 +20,8 @@

View File

@ -1,4 +1,4 @@
--- tools/fileserver.cpp.orig
--- tools/fileserver.cpp.orig 2003-03-24 19:59:39 UTC
+++ tools/fileserver.cpp
@@ -32,6 +32,7 @@
#include <sys/types.h>