aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-11-18 05:31:14 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-11-18 05:31:14 +0800
commit5743e66ec5a85b6b78a2ee8eb75608fe6904d563 (patch)
tree4276f88dfdb365a6d33587897074178f7afed689 /devel
parent277d527e87b69ca42c1565ec9be9fd2078108ee7 (diff)
downloadfreebsd-ports-gnome-5743e66ec5a85b6b78a2ee8eb75608fe6904d563.tar.gz
freebsd-ports-gnome-5743e66ec5a85b6b78a2ee8eb75608fe6904d563.tar.zst
freebsd-ports-gnome-5743e66ec5a85b6b78a2ee8eb75608fe6904d563.zip
- Add LICENSE_FILE
- Switch to options helpers - Regenerate patches with `make makepatch`
Diffstat (limited to 'devel')
-rw-r--r--devel/poslib/Makefile9
-rw-r--r--devel/poslib/files/patch-tools__fileclient.cpp2
-rw-r--r--devel/poslib/files/patch-tools__fileserver.cpp2
3 files changed, 8 insertions, 5 deletions
diff --git a/devel/poslib/Makefile b/devel/poslib/Makefile
index 72d54231c0a6..210a67dbdb42 100644
--- a/devel/poslib/Makefile
+++ b/devel/poslib/Makefile
@@ -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})
diff --git a/devel/poslib/files/patch-tools__fileclient.cpp b/devel/poslib/files/patch-tools__fileclient.cpp
index 57f6a4aae366..1d060982288e 100644
--- a/devel/poslib/files/patch-tools__fileclient.cpp
+++ b/devel/poslib/files/patch-tools__fileclient.cpp
@@ -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 @@
diff --git a/devel/poslib/files/patch-tools__fileserver.cpp b/devel/poslib/files/patch-tools__fileserver.cpp
index e55a796da0b4..9828a54d2504 100644
--- a/devel/poslib/files/patch-tools__fileserver.cpp
+++ b/devel/poslib/files/patch-tools__fileserver.cpp
@@ -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>