diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-12-14 16:51:00 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-12-14 16:51:00 +0000 |
commit | 9512476be47682f14d8db0c407c00df09a5343ae (patch) | |
tree | dd02804bed2f5fc671794c065fc5f843fb8d879d /finance | |
parent | 8bfdd7d35515470812630160dcee0df6c81aec60 (diff) |
Notes
Diffstat (limited to 'finance')
-rw-r--r-- | finance/gnofin/Makefile | 22 | ||||
-rw-r--r-- | finance/gnofin/files/patch-src_common.h | 11 | ||||
-rw-r--r-- | finance/gnofin/pkg-plist | 6 |
3 files changed, 28 insertions, 11 deletions
diff --git a/finance/gnofin/Makefile b/finance/gnofin/Makefile index 3341cc65449a..c5bf68f0b3a4 100644 --- a/finance/gnofin/Makefile +++ b/finance/gnofin/Makefile @@ -12,15 +12,23 @@ CATEGORIES= finance deskutils gnome MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= gahr@gahr.ch COMMENT= Light-weight GNOME based financial management program USE_X_PREFIX= yes USE_GNOME= gnomehack gnomelibs gnomeprefix USE_GMAKE= yes +USE_AUTOTOOLS= libtool:15 GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +.if !defined(WITHOUT_NLS) +USE_GETTEXT=yes +PLIST_SUB= NLS="" +.else +CONFIGURE_ARGS= --disable-nls +PLIST_SUB= NLS="@comment " +.endif MAN1= gnofin.1 @@ -32,11 +40,9 @@ post-patch: ${WRKSRC}/configure @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|_la_LDFLAGS =|_la_LDFLAGS = -avoid-version|g' + @${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|%%%GNOFIN_LIBDIR%%%|${PREFIX}/lib/gnofin/plugins|g' \ + ${WRKSRC}/src/Makefile.am -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 700029 -BROKEN= Incorrect pkg-plist (bad objformat handling) -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/finance/gnofin/files/patch-src_common.h b/finance/gnofin/files/patch-src_common.h new file mode 100644 index 000000000000..db25e7912c6a --- /dev/null +++ b/finance/gnofin/files/patch-src_common.h @@ -0,0 +1,11 @@ +--- src/common.h.orig 2007-12-13 19:50:36.000000000 +0100 ++++ src/common.h 2007-12-13 19:50:59.000000000 +0100 +@@ -24,6 +24,8 @@ + # include <config.h> + #endif + ++#include <string.h> ++ + #include <glib.h> + #include <libgnome/gnome-defs.h> + #include <libgnome/gnome-i18n.h> /* defines _() and N_() macros */ diff --git a/finance/gnofin/pkg-plist b/finance/gnofin/pkg-plist index 7c6d384afcd4..090506153ecf 100644 --- a/finance/gnofin/pkg-plist +++ b/finance/gnofin/pkg-plist @@ -24,8 +24,8 @@ lib/gnofin/plugins/libtext.a lib/gnofin/plugins/libtext.la lib/gnofin/plugins/libtext.so share/gnome/apps/Applications/gnofin.desktop -share/locale/cs/LC_MESSAGES/gnofin.mo -share/locale/fr/LC_MESSAGES/gnofin.mo -share/locale/pt_BR/LC_MESSAGES/gnofin.mo +%%NLS%%share/locale/cs/LC_MESSAGES/gnofin.mo +%%NLS%%share/locale/fr/LC_MESSAGES/gnofin.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/gnofin.mo @dirrm lib/gnofin/plugins @dirrm lib/gnofin |