View | Details | Raw Unified | Return to bug 185717
Collapse All | Expand All

(-)japanese/ebview-gtk2/Makefile (-19 / +18 lines)
Lines 10-45 Link Here
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Electronic Book Viewer
11
COMMENT=	Electronic Book Viewer
12
12
13
LIB_DEPENDS=	eb:${PORTSDIR}/japanese/eb
13
LICENSE=	GPLv2 # (or later)
14
14
15
CONFLICTS=	ja-ebview-0*
15
LIB_DEPENDS=	libeb.so:${PORTSDIR}/japanese/eb
16
16
17
USES=		pkgconfig
17
CONFLICTS=	ja-ebview-[0-9]*
18
USE_GNOME=	gtk20
18
19
USE_GMAKE=	yes
19
USES=		gettext gmake pkgconfig
20
GNU_CONFIGURE=	yes
20
USE_GNOME=	gtk20 pangox-compat
21
USE_CSTD=	gnu89
21
USE_CSTD=	gnu89
22
CONFIGURE_ARGS+=--with-eb-conf=${LOCALBASE}/etc/eb.conf
22
GNU_CONFIGURE=	yes
23
CPPFLAGS+=	-I${LOCALBASE}/include
23
CONFIGURE_ARGS=	--with-eb-conf=${LOCALBASE}/etc/eb.conf
24
LDFLAGS+=	-L${LOCALBASE}/lib
25
24
26
SUB_FILES=	ebview.desktop
25
SUB_FILES=	ebview.desktop
27
26
28
NO_STAGE=	yes
27
CPPFLAGS+=	-I${LOCALBASE}/include
28
LDFLAGS+=	-L${LOCALBASE}/lib
29
29
post-patch:
30
post-patch:
30
	@${REINPLACE_CMD} -e \
31
		's|-pthread|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure
32
	@${REINPLACE_CMD} -e 's|#define GTK_DISABLE_DEPRECATED 1||g' \
31
	@${REINPLACE_CMD} -e 's|#define GTK_DISABLE_DEPRECATED 1||g' \
33
		${WRKSRC}/src/ebview.c
32
		${WRKSRC}/src/ebview.c
34
33
35
post-install:
34
post-install:
36
	${INSTALL_DATA} ${WRKSRC}/pixmaps/ebview.xpm ${PREFIX}/share/pixmaps/
35
	(cd ${WRKDIR} && ${INSTALL_DATA} ${SUB_FILES} \
37
	${INSTALL_DATA} ${WRKDIR}/${SUB_FILES} ${PREFIX}/share/applications/
36
		${STAGEDIR}${DESKTOPDIR})
38
.if !defined(NOPORTDOCS)
37
	(cd ${WRKSRC}/pixmaps && ${INSTALL_DATA} ebview.xpm \
39
	@${MKDIR} ${DOCSDIR}
38
		${STAGEDIR}${PREFIX}/share/pixmaps)
40
.for file in ChangeLog README
39
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
41
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
40
.for i in ChangeLog README
41
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
42
.endfor
42
.endfor
43
.endif
44
43
45
.include <bsd.port.mk>
44
.include <bsd.port.mk>
(-)japanese/ebview-gtk2/files/patch-data__Makefile.in (+19 lines)
Line 0 Link Here
1
--- data/Makefile.in.orig
2
+++ data/Makefile.in
3
@@ -304,13 +304,13 @@
4
 
5
 install:
6
 	if test -r $(MKINSTALLDIRS); then \
7
-		$(MKINSTALLDIRS) $(pkgdatadir); \
8
+		$(MKINSTALLDIRS) $(DESTDIR)$(pkgdatadir); \
9
 	else \
10
-		$(top_srcdir)/mkinstalldirs $(pkgdatadir); \
11
+		$(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir); \
12
 	fi; \
13
 	data="$(data)"; \
14
 	for file in $$data; do \
15
-		$(INSTALL_DATA) $(srcdir)/$$file $(pkgdatadir)/$$file; \
16
+		$(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(pkgdatadir)/$$file; \
17
 	done;
18
 
19
 # Define this as empty until I found a useful application.
(-)japanese/ebview-gtk2/files/patch-doc__Makefile.in (+21 lines)
Line 0 Link Here
1
--- doc/Makefile.in.orig
2
+++ doc/Makefile.in
3
@@ -308,15 +308,15 @@
4
 	dir="$(dir)"; \
5
 	for lang in $$dir; do \
6
 		if test -r $(MKINSTALLDIRS); then \
7
-			$(MKINSTALLDIRS) $(pkgdatadir)/help/$$lang; \
8
+			$(MKINSTALLDIRS) $(DESTDIR)$(pkgdatadir)/help/$$lang; \
9
 		else \
10
-			$(top_srcdir)/mkinstalldirs $(pkgdatadir)/help/$$lang; \
11
+			$(top_srcdir)/mkinstalldirs $(DESTDIR)$(pkgdatadir)/help/$$lang; \
12
 		fi; \
13
 	done; \
14
 	data="$(data)"; \
15
 	for lang in $$dir; do \
16
 		for file in $$data; do \
17
-			$(INSTALL_DATA) $(srcdir)/$$lang/$$file $(pkgdatadir)/help/$$lang/$$file; \
18
+			$(INSTALL_DATA) $(srcdir)/$$lang/$$file $(DESTDIR)$(pkgdatadir)/help/$$lang/$$file; \
19
 		done; \
20
 	done;
21
 
(-)japanese/ebview-gtk2/files/patch-po__Makefile.in.in (+52 lines)
Line 0 Link Here
1
--- po/Makefile.in.in.orig
2
+++ po/Makefile.in.in
3
@@ -115,9 +115,9 @@
4
 install-data-no: all
5
 install-data-yes: all
6
 	if test -r "$(MKINSTALLDIRS)"; then \
7
-	  $(MKINSTALLDIRS) $(datadir); \
8
+	  $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
9
 	else \
10
-	  $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
11
+	  $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
12
 	fi
13
 	@catalogs='$(CATALOGS)'; \
14
 	for cat in $$catalogs; do \
15
@@ -129,27 +129,27 @@
16
 	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
17
 	  dir=$$destdir/$$lang/LC_MESSAGES; \
18
 	  if test -r "$(MKINSTALLDIRS)"; then \
19
-	    $(MKINSTALLDIRS) $$dir; \
20
+	    $(MKINSTALLDIRS) $(DESTDIR)$$dir; \
21
 	  else \
22
-	    $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
23
+	    $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$$dir; \
24
 	  fi; \
25
 	  if test -r $$cat; then \
26
-	    $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
27
-	    echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
28
+	    $(INSTALL_DATA) $$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \
29
+	    echo "installing $$cat as $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
30
 	  else \
31
-	    $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
32
+	    $(INSTALL_DATA) $(srcdir)/$$cat $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT); \
33
 	    echo "installing $(srcdir)/$$cat as" \
34
-		 "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
35
+		 "$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
36
 	  fi; \
37
 	  if test -r $$cat.m; then \
38
-	    $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
39
-	    echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
40
+	    $(INSTALL_DATA) $$cat.m $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
41
+	    echo "installing $$cat.m as $(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
42
 	  else \
43
 	    if test -r $(srcdir)/$$cat.m ; then \
44
 	      $(INSTALL_DATA) $(srcdir)/$$cat.m \
45
-		$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
46
+		$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
47
 	      echo "installing $(srcdir)/$$cat as" \
48
-		   "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
49
+		   "$(DESTDIR)$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
50
 	    else \
51
 	      true; \
52
 	    fi; \

Return to bug 185717