diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-10-11 04:10:09 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-10-11 04:10:09 +0800 |
commit | f7b7a57ca6ce70aaefde07078b229b1c11f7beba (patch) | |
tree | 00348d18cf509ddba75d917761754f7c0cecac6d | |
parent | 19dd4b81981a1b9a888c82c0d9940c55bf0f0193 (diff) | |
download | marcuscom-ports-f7b7a57ca6ce70aaefde07078b229b1c11f7beba.tar marcuscom-ports-f7b7a57ca6ce70aaefde07078b229b1c11f7beba.tar.gz marcuscom-ports-f7b7a57ca6ce70aaefde07078b229b1c11f7beba.tar.bz2 marcuscom-ports-f7b7a57ca6ce70aaefde07078b229b1c11f7beba.tar.lz marcuscom-ports-f7b7a57ca6ce70aaefde07078b229b1c11f7beba.tar.xz marcuscom-ports-f7b7a57ca6ce70aaefde07078b229b1c11f7beba.tar.zst marcuscom-ports-f7b7a57ca6ce70aaefde07078b229b1c11f7beba.zip |
Fix the build with new gtk20.
Reported by: pointyhat-exp
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9746 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | japanese/ebview-gtk2/Makefile | 50 | ||||
-rw-r--r-- | japanese/ebview-gtk2/distinfo | 3 | ||||
-rw-r--r-- | japanese/ebview-gtk2/files/ebview.desktop.in | 12 | ||||
-rw-r--r-- | japanese/ebview-gtk2/files/patch-configure | 20 | ||||
-rw-r--r-- | japanese/ebview-gtk2/pkg-descr | 4 | ||||
-rw-r--r-- | japanese/ebview-gtk2/pkg-plist | 25 |
6 files changed, 114 insertions, 0 deletions
diff --git a/japanese/ebview-gtk2/Makefile b/japanese/ebview-gtk2/Makefile new file mode 100644 index 000000000..c6a70bd02 --- /dev/null +++ b/japanese/ebview-gtk2/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: ebview-gtk2 +# Date Created: 7 Dec 2003 +# Whom: <faust@ua.airnet.ne.jp> +# +# $FreeBSD$ +# + +PORTNAME= ebview +PORTVERSION= 0.3.6 +PORTREVISION= 9 +CATEGORIES= japanese +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +PKGNAMESUFFIX= -gtk2 + +MAINTAINER= ports@FreeBSD.org +COMMENT= Electronic Book Viewer + +LIB_DEPENDS= eb.12:${PORTSDIR}/japanese/eb + +CONFLICTS= ja-ebview-0* + +USE_GNOME= gtk20 gnometarget +USE_GMAKE= yes +USE_X_PREFIX= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--with-eb-conf=${LOCALBASE}/etc/eb.conf +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +SUB_FILES= ebview.desktop + +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: + ${MKDIR} ${PREFIX}/share/applications + ${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} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/japanese/ebview-gtk2/distinfo b/japanese/ebview-gtk2/distinfo new file mode 100644 index 000000000..25abccbad --- /dev/null +++ b/japanese/ebview-gtk2/distinfo @@ -0,0 +1,3 @@ +MD5 (ebview-0.3.6.tar.gz) = 223f679a6b54bc32cb6d44f54909d049 +SHA256 (ebview-0.3.6.tar.gz) = 4c8ce9d9b1567b5dd7c23cb157a864f99ee8266637ab0b8c99f3dfcd963133b1 +SIZE (ebview-0.3.6.tar.gz) = 564915 diff --git a/japanese/ebview-gtk2/files/ebview.desktop.in b/japanese/ebview-gtk2/files/ebview.desktop.in new file mode 100644 index 000000000..f69bec2e2 --- /dev/null +++ b/japanese/ebview-gtk2/files/ebview.desktop.in @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Terminal=false +Name=EBView +Name[ja]=EBView +Comment=EPWING Dictionary Browser +Comment[ja]=EPWING辞書ブラウザ +Exec=%%PREFIX%%/bin/ebview +TryExec=%%PREFIX%%/bin/ebview +Icon=ebview.xpm +Type=Application +Categories=GTK;Application;Utility; diff --git a/japanese/ebview-gtk2/files/patch-configure b/japanese/ebview-gtk2/files/patch-configure new file mode 100644 index 000000000..b3df55692 --- /dev/null +++ b/japanese/ebview-gtk2/files/patch-configure @@ -0,0 +1,20 @@ +Index: configure +diff -u configure.orig configure +--- configure.orig Sun Nov 6 12:02:01 2005 ++++ configure Sun Nov 6 12:02:18 2005 +@@ -6726,13 +6726,13 @@ + + echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 + echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 +- GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0"` ++ GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0" pangox` + echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 + echo "${ECHO_T}$GTK_CFLAGS" >&6 + + echo "$as_me:$LINENO: checking GTK_LIBS" >&5 + echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 +- GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0"` ++ GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0" pangox` + echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 + echo "${ECHO_T}$GTK_LIBS" >&6 + else diff --git a/japanese/ebview-gtk2/pkg-descr b/japanese/ebview-gtk2/pkg-descr new file mode 100644 index 000000000..2ff8a9ffa --- /dev/null +++ b/japanese/ebview-gtk2/pkg-descr @@ -0,0 +1,4 @@ +Ebview is a gtk based tool to access CD-ROM dictionaries of +EPWING, EB, EBG,EBXA, EBXA-C formats. + +WWW: http://ebview.sourceforge.net/ diff --git a/japanese/ebview-gtk2/pkg-plist b/japanese/ebview-gtk2/pkg-plist new file mode 100644 index 000000000..bcdca7507 --- /dev/null +++ b/japanese/ebview-gtk2/pkg-plist @@ -0,0 +1,25 @@ +bin/ebview +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/README +%%DATADIR%%/about.en +%%DATADIR%%/about.jp +%%DATADIR%%/endinglist-ja.xml +%%DATADIR%%/endinglist.xml +%%DATADIR%%/filter.xml +%%DATADIR%%/help/en/body.html +%%DATADIR%%/help/en/menu.html +%%DATADIR%%/help/en/index.html +%%DATADIR%%/help/ja/body.html +%%DATADIR%%/help/ja/menu.html +%%DATADIR%%/help/ja/index.html +%%DATADIR%%/searchengines.xml +%%DATADIR%%/shortcut.xml +share/applications/ebview.desktop +share/locale/ja/LC_MESSAGES/ebview.mo +share/pixmaps/ebview.xpm +@dirrm %%DATADIR%%/help/ja +@dirrm %%DATADIR%%/help/en +@dirrm %%DATADIR%%/help +@dirrm %%DATADIR%% +@dirrmtry share/applications +%%PORTDOCS%%@dirrm %%DOCSDIR%% |