Added post-install target that install sample files to examples directory.
I'm using libconfig daily on i386 and amd64, haven't noticed any issues yet.
Please test. Any comments on SHARE_LIBS bump?
Commit?
/Markus
Markus Bergkvist wrote:
Diff below updates libconfig to 1.3..1
Builds and runs on i386 and amd64.
VERINFO in the distribution is bumped to 7:1:1, not sure if
SHARED_LIBS should follow, setting it to 7.0 for now due to api
changes. Please advice.
Should we add the sample files to PLIST?
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/libconfig/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile 23 Jun 2008 17:47:46 -0000 1.4
+++ Makefile 16 Sep 2008 06:02:21 -0000
@@ -2,10 +2,10 @@
COMMENT= library for manipulating structured configuration files
-DISTNAME= libconfig-1.3
+DISTNAME= libconfig-1.3.1
-SHARED_LIBS= config 6.0 \
- config++ 6.0
+SHARED_LIBS= config 7.0 \
+ config++ 7.0
CATEGORIES= devel
@@ -23,5 +23,12 @@
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/libconfig
+ ${INSTALL_DATA} ${WRKSRC}/samples/c/*.c \
+ ${PREFIX}/share/examples/libconfig
+ ${INSTALL_DATA} ${WRKSRC}/samples/c++/*.cpp \
+ ${PREFIX}/share/examples/libconfig
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/libconfig/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo 23 Jun 2008 17:47:46 -0000 1.3
+++ distinfo 16 Sep 2008 06:02:21 -0000
@@ -1,5 +1,5 @@
-MD5 (libconfig-1.3.tar.gz) = APLr+staC3sCtAm3UUMrgA==
-RMD160 (libconfig-1.3.tar.gz) = VnOxUBB86lsPy9bj4iXsSO7GuDo=
-SHA1 (libconfig-1.3.tar.gz) = QZeGJkoDsijNmc7J1PYjDIIRjIM=
-SHA256 (libconfig-1.3.tar.gz) = /ewY9srZvvJWcvk2b3tqVnV6u2c6xS/YdzTqKYhtG5U=
-SIZE (libconfig-1.3.tar.gz) = 519403
+MD5 (libconfig-1.3.1.tar.gz) = 8Cv6J6IbMEAIkCaXW53AuA==
+RMD160 (libconfig-1.3.1.tar.gz) = legFRnsaWAuXd9I7wOMY3LZvW7g=
+SHA1 (libconfig-1.3.1.tar.gz) = uTCBye/zbiuj+X/3B6BpoSDpexs=
+SHA256 (libconfig-1.3.1.tar.gz) = VnfzLv8YSIPXykAiNPkhQvNb6n0E1QO+zdEEroNDyxw=
+SIZE (libconfig-1.3.1.tar.gz) = 529332
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/libconfig/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- pkg/PLIST 21 Sep 2007 20:19:05 -0000 1.1.1.1
+++ pkg/PLIST 16 Sep 2008 06:02:21 -0000
@@ -10,3 +10,12 @@
lib/pkgconfig/
lib/pkgconfig/libconfig++.pc
lib/pkgconfig/libconfig.pc
+share/examples/libconfig/
+share/examples/libconfig/sample1.c
+share/examples/libconfig/sample1.cpp
+share/examples/libconfig/sample2.c
+share/examples/libconfig/sample2.cpp
+share/examples/libconfig/sample3.c
+share/examples/libconfig/sample3.cpp
+share/examples/libconfig/stub.c
+share/examples/libconfig/stubcpp.cpp