2006-03-18 18:13:52 +01:00
|
|
|
# ports collection makefile for: geomorph
|
|
|
|
# Date created: 24 Feb 2006
|
2006-12-21 21:41:33 +01:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-03-18 18:13:52 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= geomorph
|
2008-08-02 21:22:57 +02:00
|
|
|
PORTVERSION= 0.50
|
2006-03-18 18:13:52 +01:00
|
|
|
CATEGORIES= graphics
|
2008-08-02 21:22:57 +02:00
|
|
|
MASTER_SITES= SF
|
2006-03-18 18:13:52 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2006-03-18 18:13:52 +01:00
|
|
|
COMMENT= Height field generator and editor
|
|
|
|
|
2006-07-12 02:56:15 +02:00
|
|
|
LIB_DEPENDS= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext
|
2006-03-18 18:13:52 +01:00
|
|
|
|
|
|
|
USE_GL= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-08-02 21:22:57 +02:00
|
|
|
CONFIGURE_ARGS= --with-libintl-prefix="${LOCALBASE}"
|
2006-03-18 18:13:52 +01:00
|
|
|
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
|
2008-08-02 21:22:57 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-03-18 18:13:52 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|libpng|libpng12|' ${WRKSRC}/configure
|
2008-08-02 21:22:57 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local/share/geomorph/GeoMorph.xpm|geomorph.xpm|' \
|
|
|
|
${WRKSRC}/geomorph.desktop
|
|
|
|
@${FIND} ${WRKSRC} -exec ${GREP} -q /usr/local/share/geomorph {} \; -print | \
|
|
|
|
${XARGS} ${REINPLACE_CMD} -e 's|/usr/local/share/geomorph|${DATADIR}|'
|
|
|
|
@${REINPLACE_CMD} -e 's|\$$HOME/geomorph|\$$HOME/.geomorph|' \
|
|
|
|
${WRKSRC}/install-step* ${WRKSRC}/install-user ${WRKSRC}/update-rc
|
|
|
|
@${REINPLACE_CMD} -e '/DEF_DIR_NAME/ s|geomorph|.geomorph|' \
|
|
|
|
${WRKSRC}/src/app/globals.h ${WRKSRC}/src/hf/globals.h
|
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete
|
|
|
|
@${RM} ${WRKSRC}/install*~
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/geomorph.desktop ${PREFIX}/share/applications/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/GeoMorph.xpm ${PREFIX}/share/pixmaps/geomorph.xpm
|
2006-03-18 18:13:52 +01:00
|
|
|
|
2007-10-04 03:14:50 +02:00
|
|
|
.include <bsd.port.mk>
|