diff options
author | miwi <miwi@FreeBSD.org> | 2014-01-19 22:30:23 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-01-19 22:30:23 +0800 |
commit | 617b9a17e2ab4598889b37ac184148f5eb162b7e (patch) | |
tree | dc2725fe28a2701d931b8a52c42fd21444759e1c /japanese/ebview-gtk2 | |
parent | 37a0caafbe77d46ed0c38d3f6367e17ce812b4b2 (diff) | |
download | freebsd-ports-gnome-617b9a17e2ab4598889b37ac184148f5eb162b7e.tar.gz freebsd-ports-gnome-617b9a17e2ab4598889b37ac184148f5eb162b7e.tar.zst freebsd-ports-gnome-617b9a17e2ab4598889b37ac184148f5eb162b7e.zip |
- Fix build with clang
PR: 185717
Submitted by: ports fury
Diffstat (limited to 'japanese/ebview-gtk2')
-rw-r--r-- | japanese/ebview-gtk2/Makefile | 37 | ||||
-rw-r--r-- | japanese/ebview-gtk2/files/patch-data__Makefile.in | 19 | ||||
-rw-r--r-- | japanese/ebview-gtk2/files/patch-doc__Makefile.in | 21 | ||||
-rw-r--r-- | japanese/ebview-gtk2/files/patch-po__Makefile.in.in | 52 |
4 files changed, 110 insertions, 19 deletions
diff --git a/japanese/ebview-gtk2/Makefile b/japanese/ebview-gtk2/Makefile index 549756a3d2e9..a697b08a7e33 100644 --- a/japanese/ebview-gtk2/Makefile +++ b/japanese/ebview-gtk2/Makefile @@ -10,36 +10,35 @@ PKGNAMESUFFIX= -gtk2 MAINTAINER= ports@FreeBSD.org COMMENT= Electronic Book Viewer -LIB_DEPENDS= eb:${PORTSDIR}/japanese/eb +LICENSE= GPLv2 # (or later) -CONFLICTS= ja-ebview-0* +LIB_DEPENDS= libeb.so:${PORTSDIR}/japanese/eb -USES= pkgconfig -USE_GNOME= gtk20 -USE_GMAKE= yes -GNU_CONFIGURE= yes +CONFLICTS= ja-ebview-[0-9]* + +USES= gettext gmake pkgconfig +USE_GNOME= gtk20 pangox-compat USE_CSTD= gnu89 -CONFIGURE_ARGS+=--with-eb-conf=${LOCALBASE}/etc/eb.conf -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-eb-conf=${LOCALBASE}/etc/eb.conf SUB_FILES= ebview.desktop -NO_STAGE= yes +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + post-patch: - @${REINPLACE_CMD} -e \ - 's|-pthread|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|#define GTK_DISABLE_DEPRECATED 1||g' \ ${WRKSRC}/src/ebview.c post-install: - ${INSTALL_DATA} ${WRKSRC}/pixmaps/ebview.xpm ${PREFIX}/share/pixmaps/ - ${INSTALL_DATA} ${WRKDIR}/${SUB_FILES} ${PREFIX}/share/applications/ -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in ChangeLog README - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + (cd ${WRKDIR} && ${INSTALL_DATA} ${SUB_FILES} \ + ${STAGEDIR}${DESKTOPDIR}) + (cd ${WRKSRC}/pixmaps && ${INSTALL_DATA} ebview.xpm \ + ${STAGEDIR}${PREFIX}/share/pixmaps) + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in ChangeLog README + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) .endfor -.endif .include <bsd.port.mk> diff --git a/japanese/ebview-gtk2/files/patch-data__Makefile.in b/japanese/ebview-gtk2/files/patch-data__Makefile.in new file mode 100644 index 000000000000..bb49ee8e0728 --- /dev/null +++ b/japanese/ebview-gtk2/files/patch-data__Makefile.in @@ -0,0 +1,19 @@ +--- data/Makefile.in.orig ++++ data/Makefile.in +@@ -304,13 +304,13 @@ + + install: + if test -r $(MKINSTALLDIRS); then \ +- $(MKINSTALLDIRS) $(pkgdatadir); \ ++ $(MKINSTALLDIRS) $(DESTDIR)$(pkgdatadir); \ + else \ +- $(top_srcdir)/mkinstalldirs $(pkgdatadir); \ ++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir); \ + fi; \ + data="$(data)"; \ + for file in $$data; do \ +- $(INSTALL_DATA) $(srcdir)/$$file $(pkgdatadir)/$$file; \ ++ $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(pkgdatadir)/$$file; \ + done; + + # Define this as empty until I found a useful application. diff --git a/japanese/ebview-gtk2/files/patch-doc__Makefile.in b/japanese/ebview-gtk2/files/patch-doc__Makefile.in new file mode 100644 index 000000000000..c30606706b11 --- /dev/null +++ b/japanese/ebview-gtk2/files/patch-doc__Makefile.in @@ -0,0 +1,21 @@ +--- doc/Makefile.in.orig ++++ doc/Makefile.in +@@ -308,15 +308,15 @@ + dir="$(dir)"; \ + for lang in $$dir; do \ + if test -r $(MKINSTALLDIRS); then \ +- $(MKINSTALLDIRS) $(pkgdatadir)/help/$$lang; \ ++ $(MKINSTALLDIRS) $(DESTDIR)$(pkgdatadir)/help/$$lang; \ + else \ +- $(top_srcdir)/mkinstalldirs $(pkgdatadir)/help/$$lang; \ ++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir)/help/$$lang; \ + fi; \ + done; \ + data="$(data)"; \ + for lang in $$dir; do \ + for file in $$data; do \ +- $(INSTALL_DATA) $(srcdir)/$$lang/$$file $(pkgdatadir)/help/$$lang/$$file; \ ++ $(INSTALL_DATA) $(srcdir)/$$lang/$$file $(DESTDIR)$(pkgdatadir)/help/$$lang/$$file; \ + done; \ + done; + diff --git a/japanese/ebview-gtk2/files/patch-po__Makefile.in.in b/japanese/ebview-gtk2/files/patch-po__Makefile.in.in new file mode 100644 index 000000000000..7346ea3edf14 --- /dev/null +++ b/japanese/ebview-gtk2/files/patch-po__Makefile.in.in @@ -0,0 +1,52 @@ +--- po/Makefile.in.in.orig ++++ po/Makefile.in.in +@@ -115,9 +115,9 @@ + install-data-no: all + install-data-yes: all + if test -r "$(MKINSTALLDIRS)"; then \ +- $(MKINSTALLDIRS) $(datadir); \ ++ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ + else \ +- $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \ ++ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ + fi + @catalogs='$(CATALOGS)'; \ + for cat in $$catalogs; do \ +@@ -129,27 +129,27 @@ + lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ + dir=$$destdir/$$lang/LC_MESSAGES; \ + if test -r "$(MKINSTALLDIRS)"; then \ +- $(MKINSTALLDIRS) $$dir; \ ++ $(MKINSTALLDIRS) $(DESTDIR)$$dir; \ + else \ +- $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ ++ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$$dir; \ + fi; \ + if test -r $$cat; then \ +- $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ +- echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \ ++ $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \ ++ echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ + else \ +- $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \ ++ $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \ + echo "installing $(srcdir)/$$cat as" \ +- "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ ++ "$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT)"; \ + fi; \ + if test -r $$cat.m; then \ +- $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ +- echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ ++ $(INSTALL_DATA) $$cat.m $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m; \ ++ echo "installing $$cat.m as $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ + else \ + if test -r $(srcdir)/$$cat.m ; then \ + $(INSTALL_DATA) $(srcdir)/$$cat.m \ +- $$dir/$(PACKAGE)$(INSTOBJEXT).m; \ ++ $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m; \ + echo "installing $(srcdir)/$$cat as" \ +- "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ ++ "$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \ + else \ + true; \ + fi; \ |