aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2011-09-08 22:11:39 +0800
committergahr <gahr@FreeBSD.org>2011-09-08 22:11:39 +0800
commit60bb998e6208a25f277c1ff9ea51d88ee276b194 (patch)
tree6a5715caf97310761f46a1027838fa6f9de5dd3a /lang
parent0a7b780ba9f05d9ab7c5c99fa7148e5eaaef882f (diff)
downloadfreebsd-ports-gnome-60bb998e6208a25f277c1ff9ea51d88ee276b194.tar.gz
freebsd-ports-gnome-60bb998e6208a25f277c1ff9ea51d88ee276b194.tar.zst
freebsd-ports-gnome-60bb998e6208a25f277c1ff9ea51d88ee276b194.zip
- Fix PLIST and handling of PORTDOCS
Reported by: PH (via erwin)
Diffstat (limited to 'lang')
-rw-r--r--lang/libhx/Makefile20
-rw-r--r--lang/libhx/pkg-plist1
2 files changed, 10 insertions, 11 deletions
diff --git a/lang/libhx/Makefile b/lang/libhx/Makefile
index 35ba53ae6f4b..520a4ded07b1 100644
--- a/lang/libhx/Makefile
+++ b/lang/libhx/Makefile
@@ -20,20 +20,20 @@ USE_XZ= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
+CONFIGURE_ARGS+=--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
-PORTDOCS= libHX_Documentation.pdf
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:L}
+.endif
+
+MAN1= hxdirstamp.1
post-patch:
${REINPLACE_CMD} -e 's| -lrt||g' ${WRKSRC}/src/Makefile.in
-
-post-build:
- @${REINPLACE_CMD} -e 's|doc src|src|g' ${WRKSRC}/Makefile
-
-post-install:
- (mv ${PREFIX}/lib/pkgconfig/libHX.pc ${PREFIX}/libdata/pkgconfig/libHX.pc)
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/
+.if defined(NOPORTDOCS)
+ ${REINPLACE_CMD} -e 's|libHX_Documentation.pdf||' \
+ ${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/Makefile.am
.endif
.include <bsd.port.mk>
diff --git a/lang/libhx/pkg-plist b/lang/libhx/pkg-plist
index e910ea721811..d2658e19a717 100644
--- a/lang/libhx/pkg-plist
+++ b/lang/libhx/pkg-plist
@@ -17,5 +17,4 @@ lib/libHX.la
lib/libHX.so
lib/libHX.so.27
libdata/pkgconfig/libHX.pc
-@dirrm lib/pkgconfig
@dirrm include/libHX