aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-03 23:39:51 +0800
committerkrion <krion@FreeBSD.org>2004-07-03 23:39:51 +0800
commit825723e50250eefc2b9a0e9b53016ab4fd66dc94 (patch)
tree5fa878cd80e012fbf92be29dada6826653b3b9aa /ftp
parent24786480223622b4187c5606db7918e1ac263f4c (diff)
downloadfreebsd-ports-gnome-825723e50250eefc2b9a0e9b53016ab4fd66dc94.tar.gz
freebsd-ports-gnome-825723e50250eefc2b9a0e9b53016ab4fd66dc94.tar.zst
freebsd-ports-gnome-825723e50250eefc2b9a0e9b53016ab4fd66dc94.zip
Support CFLAGS properly
Support WITHOUT_NLS PR: ports/68630 Submitted by: Ports Fury
Diffstat (limited to 'ftp')
-rw-r--r--ftp/wgetpro/Makefile25
-rw-r--r--ftp/wgetpro/files/patch-configure11
-rw-r--r--ftp/wgetpro/pkg-plist27
3 files changed, 41 insertions, 22 deletions
diff --git a/ftp/wgetpro/Makefile b/ftp/wgetpro/Makefile
index 3d8217a3924c..a36ab7dd9c16 100644
--- a/ftp/wgetpro/Makefile
+++ b/ftp/wgetpro/Makefile
@@ -16,22 +16,25 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Wget with "PRO" features
+USE_PERL5_BUILD= yes
USE_GETOPT_LONG= yes
USE_OPENSSL= yes
-USE_GETTEXT= yes
-USE_PERL5_BUILD= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib -lintl"
USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-PLIST_FILES= bin/wpro
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+PLIST_SUB+= NLS=""
+.endif
post-patch:
- @${TOUCH} ${WRKSRC}/configure
-
-post-install:
- @${FIND} ${PREFIX}/share/locale -name "wpro.mo" | \
- ${SED} -e "s,^${PREFIX}/,," >> ${TMPPLIST}
+ @${PERL} -pi -e 's|^PACKAGE=.*$$|PACKAGE=wpro|g' ${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/ftp/wgetpro/files/patch-configure b/ftp/wgetpro/files/patch-configure
deleted file mode 100644
index 7d2d6e9e83c8..000000000000
--- a/ftp/wgetpro/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig Tue May 18 09:21:47 2004
-+++ configure Tue May 18 09:22:06 2004
-@@ -1443,7 +1443,7 @@
- VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
- echo "configuring for WgetPRO $VERSION"
-
--PACKAGE=wget
-+PACKAGE=wpro
-
-
- ac_aux_dir=
diff --git a/ftp/wgetpro/pkg-plist b/ftp/wgetpro/pkg-plist
new file mode 100644
index 000000000000..de2b62137eab
--- /dev/null
+++ b/ftp/wgetpro/pkg-plist
@@ -0,0 +1,27 @@
+bin/wpro
+%%NLS%%share/locale/bg/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/da/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/de/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/el/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/es/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/et/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/he/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/it/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/no/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/wpro.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/wpro.mo