aboutsummaryrefslogtreecommitdiff
path: root/misc/help2man
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-03-03 10:03:15 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-03-03 10:03:15 +0000
commit24994a4c9c8f4f90e28dd7ba9f0827f91abf470f (patch)
treec165f398293394d119d5a9ca99ec16d239cf2777 /misc/help2man
parente15827d4b629de8e6a404bbe863c77175112e77f (diff)
downloadports-24994a4c9c8f4f90e28dd7ba9f0827f91abf470f.tar.gz
ports-24994a4c9c8f4f90e28dd7ba9f0827f91abf470f.zip
Fix Build on CURRENT, I am not sure why this worked on STABLE [1]
Add WITHOUT_NLS knob. [1]: Reported by: adamw, ale Pointy hat to: arved
Notes
Notes: svn path=/head/; revision=102798
Diffstat (limited to 'misc/help2man')
-rw-r--r--misc/help2man/Makefile16
-rw-r--r--misc/help2man/files/patch-configure13
2 files changed, 25 insertions, 4 deletions
diff --git a/misc/help2man/Makefile b/misc/help2man/Makefile
index d657b9e7601a..9df4ce0f9f42 100644
--- a/misc/help2man/Makefile
+++ b/misc/help2man/Makefile
@@ -16,18 +16,26 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= arved@FreeBSD.org
COMMENT= Automatically generating simple manual pages from program output
+.if !defined(WITHOUT_NLS)
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext
RUN_DEPENDS= ${BUILD_DEPENDS}
+MANLANG= "" pl fr
+PLIST_SUB= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB= NLS="@comment "
+.endif
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE= yes
USE_PERL5= yes
MAN1= help2man.1
-MANLANG= "" pl fr
+
INFO= help2man
-PLIST_FILES= bin/help2man lib/hacklocaledir.so \
- share/locale/fr/LC_MESSAGES/help2man.mo \
- share/locale/pl/LC_MESSAGES/help2man.mo
+PLIST_FILES= bin/help2man %%NLS%%lib/hacklocaledir.so \
+ %%NLS%%share/locale/fr/LC_MESSAGES/help2man.mo \
+ %%NLS%%share/locale/pl/LC_MESSAGES/help2man.mo
.include <bsd.port.mk>
diff --git a/misc/help2man/files/patch-configure b/misc/help2man/files/patch-configure
new file mode 100644
index 000000000000..0f91e78552e8
--- /dev/null
+++ b/misc/help2man/files/patch-configure
@@ -0,0 +1,13 @@
+--- configure.orig Wed Mar 3 10:56:35 2004
++++ configure Wed Mar 3 10:56:54 2004
+@@ -2307,10 +2307,6 @@
+ preload=`LD_PRELOAD="preloadable_libintl.so" sh -c 'echo yes' 2>/dev/null`
+ echo "$as_me:$LINENO: result: ${preload:=no}" >&5
+ echo "${ECHO_T}${preload:=no}" >&6
+- test "$preload" = no && \
+- { { echo "$as_me:$LINENO: error: libpreloadable_libintl.so required (gettext 0.12+)" >&5
+-echo "$as_me: error: libpreloadable_libintl.so required (gettext 0.12+)" >&2;}
+- { (exit 1); exit 1; }; }
+
+ extra_make_all='preload man_l10n'
+ extra_make_install='install_preload install_l10n'