diff options
Diffstat (limited to 'astro/starplot/Makefile')
-rw-r--r-- | astro/starplot/Makefile | 46 |
1 files changed, 15 insertions, 31 deletions
diff --git a/astro/starplot/Makefile b/astro/starplot/Makefile index 1006d1bd74c9..50147fd0f128 100644 --- a/astro/starplot/Makefile +++ b/astro/starplot/Makefile @@ -6,10 +6,9 @@ # PORTNAME= starplot -PORTVERSION= 0.92.3 -PORTREVISION= 1 +PORTVERSION= 0.95 CATEGORIES= astro -MASTER_SITES= http://www.princeton.edu/~kmccarty/downloads/ +MASTER_SITES= http://starplot.org/downloads/ MAINTAINER= pat@FreeBSD.org COMMENT= 3-dimensional viewer for star charts @@ -17,36 +16,21 @@ COMMENT= 3-dimensional viewer for star charts USE_X_PREFIX= yes USE_REINPLACE= yes USE_GMAKE= yes -USE_GNOME= gtk12 -USE_XPM= yes -MAKE_ENV= DATADIR="${DATADIR}" \ - DOCSDIR="${DOCSDIR}" +GNU_CONFIGURE= yes +USE_GNOME= gtk20 +USE_GETTEXT= yes +USE_ICONV= yes +MAKE_ENV= DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} +CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE} -MAN1= starplot.1 starconvert.1 +MAN1= starconvert.1 starpkg.1 starplot.1 -pre-patch: - @${REINPLACE_CMD} -e 's|DATADIR|${DATADIR}|; s|DOCDIR|${DOCSDIR}|; \ - s|BINARYNAME|${PORTNAME}|; s|CONVERTNAME|starconvert|' \ - ${WRKSRC}/doc/man/* - @${REINPLACE_CMD} -e 's|/usr/local/share/starplot|${DATADIR}|; \ - s|/usr/local/share/doc/starplot|${DOCSDIR}|' \ - ${WRKSRC}/gui/starplot.h - -do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/starplot ${PREFIX}/bin - @${INSTALL_PROGRAM} ${WRKSRC}/starconvert ${PREFIX}/bin - @${INSTALL_MAN} ${WRKSRC}/doc/man/starplot-template \ - ${PREFIX}/man/man1/starplot.1 - @${INSTALL_MAN} ${WRKSRC}/doc/man/starconvert-template \ - ${PREFIX}/man/man1/starconvert.1 - @${MKDIR} ${DATADIR}/examples - @${INSTALL_DATA} ${WRKSRC}/examples/*.stars ${DATADIR}/examples -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR}/examples ${DOCSDIR}/html/images - @${INSTALL_DATA} ${WRKSRC}/examples/example.spec ${DOCSDIR}/examples - @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${DOCSDIR}/html - @${INSTALL_DATA} ${WRKSRC}/doc/html/images/* ${DOCSDIR}/html/images +.if defined(WITHOUT_NLS) +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.else +USE_GETTEXT= yes +PLIST_SUB+= NLS="" .endif .include <bsd.port.mk> |