diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-07-03 15:39:51 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-07-03 15:39:51 +0000 |
commit | 2a19b5a70b4bbf74f4c64e6aa5f518fd472917e1 (patch) | |
tree | c6c5681c9cfed309a1b692c75d3bae65c96127c5 /ftp/wgetpro | |
parent | ff93f89b8e927278d5b67d572bd534ed3950c36e (diff) | |
download | ports-2a19b5a70b4bbf74f4c64e6aa5f518fd472917e1.tar.gz ports-2a19b5a70b4bbf74f4c64e6aa5f518fd472917e1.zip |
Notes
Diffstat (limited to 'ftp/wgetpro')
-rw-r--r-- | ftp/wgetpro/Makefile | 25 | ||||
-rw-r--r-- | ftp/wgetpro/files/patch-configure | 11 | ||||
-rw-r--r-- | ftp/wgetpro/pkg-plist | 27 |
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 |