2013-05-06 17:18:38 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-03-18 18:13:52 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= geomorph
|
2014-01-11 01:52:02 +01:00
|
|
|
PORTVERSION= 0.60.1
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 1
|
2006-03-18 18:13:52 +01:00
|
|
|
CATEGORIES= graphics
|
2014-01-11 01:52:02 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.60/
|
2006-03-18 18:13:52 +01:00
|
|
|
|
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
|
|
|
|
|
2014-01-11 01:52:02 +01:00
|
|
|
LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext \
|
|
|
|
libpng.so:${PORTSDIR}/graphics/png
|
2006-03-18 18:13:52 +01:00
|
|
|
|
2013-09-03 08:36:41 +02:00
|
|
|
USES= gmake pkgconfig
|
2006-03-18 18:13:52 +01:00
|
|
|
USE_GL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-08-02 21:22:57 +02:00
|
|
|
CONFIGURE_ARGS= --with-libintl-prefix="${LOCALBASE}"
|
2014-01-11 01:52:02 +01:00
|
|
|
USE_GCC= any # lots of severely broken code
|
2006-03-18 18:13:52 +01:00
|
|
|
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2014-01-11 01:52:02 +01:00
|
|
|
PORTDATA= *
|
2006-03-18 18:13:52 +01:00
|
|
|
|
2014-01-11 01:52:02 +01:00
|
|
|
OPTIONS_DEFINE= NLS
|
|
|
|
OPTIONS_SUB= yes
|
2013-05-06 17:18:38 +02:00
|
|
|
|
2014-01-11 01:52:02 +01:00
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2008-09-16 14:07:01 +02:00
|
|
|
|
2006-03-18 18:13:52 +01:00
|
|
|
post-patch:
|
2014-01-11 01:52:02 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -i '' -e 's|/usr/local/share/geomorph|${DATADIR}|' {} \;
|
2008-08-02 21:22:57 +02:00
|
|
|
@${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
|
|
|
|
|
|
|
|
post-install:
|
2014-01-11 01:52:02 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/geomorph.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/GeoMorph.xpm ${STAGEDIR}${PREFIX}/share/pixmaps/
|
2006-03-18 18:13:52 +01:00
|
|
|
|
2014-01-11 01:52:02 +01:00
|
|
|
.include <bsd.port.mk>
|