- Support CXX/CXXFLAGS/PREFIX/GTK_CONFIG properly
- Fix pkg-plist PR: 24200 Submitted by: MAINTAINER
This commit is contained in:
parent
122aeb5544
commit
4f8d8e0e5f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37073
3 changed files with 24 additions and 31 deletions
|
@ -7,23 +7,25 @@
|
|||
|
||||
PORTNAME= downloader
|
||||
PORTVERSION= 1.20
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= http://www.krasu.ru/soft/chuchelo/files/ \
|
||||
ftp://ftp.server51.freshmeat.net/pub/d4x/ \
|
||||
ftp://ftp.chg.ru/pub/X11/applications/Xdownloader/
|
||||
DISTNAME= nt-1.20
|
||||
DISTNAME= nt-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/main
|
||||
|
||||
USE_GTK= yes
|
||||
USE_GMAKE= yes
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/main
|
||||
MAKE_ENV= MSGFMT_CMD="${LOCALBASE}/bin/msgfmt"
|
||||
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" DEST="${PREFIX}" \
|
||||
GTKCONFIG="${GTK_CONFIG}" MAKE="${GMAKE}" \
|
||||
MSGFMT_CMD="${LOCALBASE}/bin/msgfmt"
|
||||
MAN1= nt.1
|
||||
|
||||
D4X_DOC= ChangeLog FAQ FAQ.de FAQ.es FAQ.fr FAQ.gr LICENSE \
|
||||
PORTDOCS= ChangeLog FAQ FAQ.de FAQ.es FAQ.fr FAQ.gr LICENSE \
|
||||
NAMES PLANS README README.de README.es README.gr \
|
||||
README.pl README.pt_BR README.ru THANKS TODO TROUBLES
|
||||
|
||||
|
@ -31,7 +33,7 @@ post-install:
|
|||
${INSTALL_MAN} ${WRKSRC}/../nt.1 ${PREFIX}/man/man1
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/downloader
|
||||
.for file in ${D4X_DOC}
|
||||
.for file in ${PORTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/../${file} ${PREFIX}/share/doc/downloader
|
||||
.endfor
|
||||
.endif
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
--- Makefile.orig Sat Dec 16 07:44:10 2000
|
||||
+++ Makefile Fri Jan 5 21:24:27 2001
|
||||
@@ -5,10 +5,10 @@
|
||||
SOLARIS_TYPECASTED_X11_HEADERS=-I/var/tmp/src
|
||||
endif
|
||||
ifndef CXXFLAGS
|
||||
-CXXFLAGS=-Wall -O2 $(SOLARIS_TYPECASTED_X11_HEADERS)
|
||||
+#CXXFLAGS=-Wall -O2 $(SOLARIS_TYPECASTED_X11_HEADERS)
|
||||
--- Makefile.orig Sun Dec 17 00:44:10 2000
|
||||
+++ Makefile Wed Jan 10 03:45:22 2001
|
||||
@@ -8,7 +8,7 @@
|
||||
CXXFLAGS=-Wall -O2 $(SOLARIS_TYPECASTED_X11_HEADERS)
|
||||
endif
|
||||
|
||||
-CXXFLAGS+=-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $(SOLARIS_TYPECASTED_X11_HEADERS) -DDEBUG_ALL
|
||||
|
@ -13,30 +9,23 @@
|
|||
# -ggdb
|
||||
|
||||
export CXXFLAGS LOCALEDIR
|
||||
@@ -33,11 +33,13 @@
|
||||
@@ -39,8 +39,8 @@
|
||||
MAKE=gmake
|
||||
endif
|
||||
|
||||
-ifeq ($(OSTYPE),FreeBSD)
|
||||
+# fsck'ing gmake won't recongize us as FreeBSD...
|
||||
+#ifeq ($(OSTYPE),FreeBSD)
|
||||
PTHREAD=-pthread
|
||||
GTKCONFIG=gtk12-config
|
||||
+GLIBCONFIG=glib12-config
|
||||
MAKE=gmake
|
||||
-endif
|
||||
+#endif
|
||||
-GTKLIBS=$(shell $(GTKCONFIG) --libs) $(shell $(GLIBCONFIG) --libs)
|
||||
-GTKFLAGS=$(shell $(GTKCONFIG) --cflags) $(shell $(GLIBCONFIG) --cflags)
|
||||
+GTKLIBS=$(shell $(GTKCONFIG) --libs) #$(shell $(GLIBCONFIG) --libs)
|
||||
+GTKFLAGS=$(shell $(GTKCONFIG) --cflags) #$(shell $(GLIBCONFIG) --cflags)
|
||||
|
||||
GTKLIBS=$(shell $(GTKCONFIG) --libs) $(shell $(GLIBCONFIG) --libs)
|
||||
GTKFLAGS=$(shell $(GTKCONFIG) --cflags) $(shell $(GLIBCONFIG) --cflags)
|
||||
@@ -81,8 +83,8 @@
|
||||
ifeq ($(OSTYPE),Irix)
|
||||
CTKFLIBS += lintl
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
|
||||
install: all
|
||||
- install -c -m755 nt $(DEST)/bin
|
||||
- [ -z "$(NLS)" ] || $(MAKE) install -C po
|
||||
+ $(BSD_INSTALL_PROGRAM) nt $(DEST)/bin
|
||||
+ [ -z "$(NLS)" ] || cd po && LOCALEDIR=$(LOCALEDIR) $(MAKE) install
|
||||
+ ${BSD_INSTALL_PROGRAM} nt $(DEST)/bin
|
||||
[ -z "$(NLS)" ] || $(MAKE) install -C po
|
||||
|
||||
clean:
|
||||
-rm -f *.o nt TAGS *~
|
||||
|
|
|
@ -30,9 +30,11 @@ share/locale/id/LC_MESSAGES/nt.mo
|
|||
share/locale/it/LC_MESSAGES/nt.mo
|
||||
share/locale/iw/LC_MESSAGES/nt.mo
|
||||
share/locale/ja/LC_MESSAGES/nt.mo
|
||||
share/locale/ko/LC_MESSAGES/nt.mo
|
||||
share/locale/nl/LC_MESSAGES/nt.mo
|
||||
share/locale/pl/LC_MESSAGES/nt.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/nt.mo
|
||||
share/locale/ru/LC_MESSAGES/nt.mo
|
||||
share/locale/sk/LC_MESSAGES/nt.mo
|
||||
share/locale/zh_CN.GBK/LC_MESSAGES/nt.mo
|
||||
@dirrm share/doc/downloader
|
||||
|
|
Loading…
Reference in a new issue