mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
- make gettext a build dependency
- add a WITHOUT_NLS knob Requested by: many
This commit is contained in:
parent
845d64c667
commit
8a28463f99
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116634
@ -8,27 +8,39 @@
|
||||
PORTNAME= popt
|
||||
PORTVERSION= 1.7
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/ \
|
||||
ftp://ftp.mirror.ac.uk/sites/ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/
|
||||
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
|
||||
http://rpmfind.net/linux/rpm.org/rpm/dist/%SUBDIR%/ \
|
||||
ftp://ftp.mirror.ac.uk/sites/ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
|
||||
http://gd.tuwien.ac.at/utils/rpm.org/dist/%SUBDIR%/ \
|
||||
ftp://sunsite.cnlab-switch.ch/mirror/rpm/dist/%SUBDIR%/ \
|
||||
ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/
|
||||
MASTER_SITE_SUBDIR= rpm-4.1.x
|
||||
|
||||
MAINTAINER= eik@FreeBSD.org
|
||||
COMMENT= A getopt(3) like library with a number of enhancements, from Redhat
|
||||
|
||||
USE_GETTEXT= yes
|
||||
USE_INC_LIBTOOL_VER= 13
|
||||
BUILD_DEPENDS= xgettext:${PORTSDIR}/devel/gettext
|
||||
|
||||
USE_LIBTOOL_VER= 15
|
||||
USE_REINPLACE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
|
||||
--program-prefix=""
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LIBS="-L${LOCALBASE}/lib"
|
||||
|
||||
MAN3= popt.3
|
||||
|
||||
post-patch:
|
||||
# avoid installing both charset.alias and locale.alias which conflict
|
||||
# with libiconv
|
||||
@${REINPLACE_CMD} -E -e 's|(SUBDIRS[[:space:]]+=.*)intl|\1|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
|
||||
--program-prefix=""
|
||||
|
||||
.if defined(WITHOUT_NLS)
|
||||
CONFIGURE_ARGS+=--disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.else
|
||||
USE_GETTEXT= yes
|
||||
PLIST_SUB+= NLS=""
|
||||
.endif
|
||||
|
||||
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
37
devel/popt/files/patch-Makefile.in
Normal file
37
devel/popt/files/patch-Makefile.in
Normal file
@ -0,0 +1,37 @@
|
||||
--- Makefile.in.orig Sat Aug 31 15:22:18 2002
|
||||
+++ Makefile.in Sat Jun 26 22:12:19 2004
|
||||
@@ -124,7 +124,7 @@
|
||||
popt.ps
|
||||
|
||||
|
||||
-SUBDIRS = intl po
|
||||
+SUBDIRS = po
|
||||
|
||||
INCLUDES = -I. -I$(top_srcdir)
|
||||
|
||||
@@ -133,13 +133,13 @@
|
||||
noinst_PROGRAMS = test1 test2 test3
|
||||
test1_SOURCES = test1.c
|
||||
test1_LDFLAGS = -all-static
|
||||
-test1_LDADD = $(lib_LTLIBRARIES)
|
||||
+test1_LDADD = $(lib_LTLIBRARIES) $(LTLIBICONV)
|
||||
test2_SOURCES = test2.c
|
||||
test2_LDFLAGS = -all-static
|
||||
-test2_LDADD = $(lib_LTLIBRARIES)
|
||||
+test2_LDADD = $(lib_LTLIBRARIES) $(LTLIBICONV)
|
||||
test3_SOURCES = test3.c
|
||||
test3_LDFLAGS = -all-static
|
||||
-test3_LDADD = $(lib_LTLIBRARIES)
|
||||
+test3_LDADD = $(lib_LTLIBRARIES) # $(LTLIBICONV)
|
||||
|
||||
noinst_SCRIPTS = testit.sh
|
||||
|
||||
@@ -164,7 +164,7 @@
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
|
||||
libpopt_la_LDFLAGS =
|
||||
-libpopt_la_LIBADD =
|
||||
+libpopt_la_LIBADD = $(LTLIBINTL)
|
||||
am_libpopt_la_OBJECTS = popt.lo findme.lo poptparse.lo poptconfig.lo \
|
||||
popthelp.lo
|
||||
libpopt_la_OBJECTS = $(am_libpopt_la_OBJECTS)
|
11
devel/popt/files/patch-test3.c
Normal file
11
devel/popt/files/patch-test3.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- test3.c.orig Wed Aug 18 23:57:09 2004
|
||||
+++ test3.c Thu Aug 19 00:01:27 2004
|
||||
@@ -9,7 +9,7 @@
|
||||
int main (int argc, char **argv) {
|
||||
char *out;
|
||||
int newargc, j, f, ret;
|
||||
- char **newargv;
|
||||
+ const char **newargv;
|
||||
FILE *fp;
|
||||
|
||||
if (argc == 1) {
|
@ -1,5 +1,3 @@
|
||||
Quoted from README file:
|
||||
|
||||
This is the popt command line option parsing library. While it is similiar
|
||||
to getopt(3), it contains a number of enhancements, including:
|
||||
|
||||
@ -9,3 +7,5 @@ to getopt(3), it contains a number of enhancements, including:
|
||||
3) popt allows users to alias command line arguments
|
||||
4) popt provides convience functions for parsing strings
|
||||
into argv[] style arrays
|
||||
|
||||
WWW: http://freshmeat.net/projects/popt/
|
||||
|
@ -2,90 +2,78 @@ include/popt.h
|
||||
lib/libpopt.a
|
||||
lib/libpopt.so
|
||||
lib/libpopt.so.0
|
||||
share/locale/cs/LC_MESSAGES/popt.mo
|
||||
share/locale/da/LC_MESSAGES/popt.mo
|
||||
share/locale/de/LC_MESSAGES/popt.mo
|
||||
share/locale/es/LC_MESSAGES/popt.mo
|
||||
share/locale/eu_ES/LC_MESSAGES/popt.mo
|
||||
share/locale/fi/LC_MESSAGES/popt.mo
|
||||
share/locale/fr/LC_MESSAGES/popt.mo
|
||||
share/locale/gl/LC_MESSAGES/popt.mo
|
||||
share/locale/hu/LC_MESSAGES/popt.mo
|
||||
share/locale/id/LC_MESSAGES/popt.mo
|
||||
share/locale/is/LC_MESSAGES/popt.mo
|
||||
share/locale/it/LC_MESSAGES/popt.mo
|
||||
share/locale/ja/LC_MESSAGES/popt.mo
|
||||
share/locale/ko/LC_MESSAGES/popt.mo
|
||||
share/locale/no/LC_MESSAGES/popt.mo
|
||||
share/locale/pl/LC_MESSAGES/popt.mo
|
||||
share/locale/pt/LC_MESSAGES/popt.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/popt.mo
|
||||
share/locale/ro/LC_MESSAGES/popt.mo
|
||||
share/locale/ru/LC_MESSAGES/popt.mo
|
||||
share/locale/sk/LC_MESSAGES/popt.mo
|
||||
share/locale/sl/LC_MESSAGES/popt.mo
|
||||
share/locale/sr/LC_MESSAGES/popt.mo
|
||||
share/locale/sv/LC_MESSAGES/popt.mo
|
||||
share/locale/tr/LC_MESSAGES/popt.mo
|
||||
share/locale/uk/LC_MESSAGES/popt.mo
|
||||
share/locale/wa/LC_MESSAGES/popt.mo
|
||||
share/locale/zh/LC_MESSAGES/popt.mo
|
||||
share/locale/zh_CN.GB2312/LC_MESSAGES/popt.mo
|
||||
@unexec rmdir %D/share/locale/zh_CN.GB2312/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/zh_CN.GB2312 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/zh/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/zh 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/wa/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/wa 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/uk/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/uk 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/tr/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/tr 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sv/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sv 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sr/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sr 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sl/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sl 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sk/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/sk 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ru/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ru 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ro/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ro 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/pt_BR/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/pt_BR 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/pt/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/pt 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/pl 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/no/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/no 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ko/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ko 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ja/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/ja 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/it 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/is/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/is 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/id/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/id 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/hu/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/hu 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/gl/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/gl 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/fr 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/fi/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/fi 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/eu_ES/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/eu_ES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/es/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/es 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/de 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/da/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/da 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true
|
||||
@unexec rmdir %D/share/locale/cs 2>/dev/null || true
|
||||
%%NLS%%share/locale/cs/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/da/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/de/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/es/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/eu_ES/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/fi/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/fr/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/gl/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/hu/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/id/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/is/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/it/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/ja/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/ko/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/no/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/pl/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/pt/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/pt_BR/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/ro/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/ru/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/sk/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/sl/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/sr/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/sv/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/tr/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/uk/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/wa/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/zh/LC_MESSAGES/popt.mo
|
||||
%%NLS%%share/locale/zh_CN.GB2312/LC_MESSAGES/popt.mo
|
||||
%%NLS%%@unexec rmdir %D/share/locale/zh_CN.GB2312/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/zh_CN.GB2312 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/zh/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/zh 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/wa/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/wa 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/uk/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/uk 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/tr/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/sv/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/sr/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/sr 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/sl/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/sl 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/sk/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/sk 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/ru/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/ro/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/ro 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/pt_BR/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/pt/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/pt 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/pl/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/pl 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/no/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/no 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/ko/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/ko 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/ja/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/it/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/is/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/is 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/id/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/hu/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/gl/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/gl 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/fi/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/fi 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/eu_ES/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/eu_ES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/es/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/da/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/cs/LC_MESSAGES 2>/dev/null || true
|
||||
%%NLS%%@unexec rmdir %D/share/locale/cs 2>/dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user