freebsd-ports/graphics/nathive/Makefile

44 lines
1 KiB
Makefile
Raw Normal View History

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= nathive
2013-09-12 03:26:34 +02:00
PORTVERSION= 0.924
CATEGORIES= graphics
2013-09-12 03:26:34 +02:00
MASTER_SITES= http://www.nathive.org/dl/ \
http://mirror.amdmi3.ru/distfiles/
2013-09-12 03:26:34 +02:00
EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Lightweight image editor
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
RUN_DEPENDS= python:${PORTSDIR}/lang/python \
${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2
2013-09-12 03:26:34 +02:00
USES= gmake
USE_PYTHON= 2
2013-09-12 03:26:34 +02:00
MAKEFILE= makefile
2009-01-21 14:51:48 +01:00
ALL_TARGET= default
2013-09-12 03:26:34 +02:00
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
2013-09-12 03:26:34 +02:00
.include <bsd.port.options.mk>
post-patch:
2013-09-12 03:26:34 +02:00
@${REINPLACE_CMD} -e '/BASE =/ s|=.*|= ${PREFIX}/|; \
s|cp -r \([^ ]*\)/|cp -R \1|; \
s|python |${PYTHON_CMD} |' ${WRKSRC}/${MAKEFILE}
2013-09-12 03:26:34 +02:00
@${REINPLACE_CMD} -e 's|/usr/share/nathive|${DATADIR}|' \
${WRKSRC}/${PORTNAME}.desktop
.if ! ${PORT_OPTIONS:MDOCS}
2013-09-13 03:50:09 +02:00
@${REINPLACE_CMD} -e '/install.*DOC/ d; /mkdir -p.*BASE.*DOC/ d' \
${WRKSRC}/${MAKEFILE}
2013-09-12 03:26:34 +02:00
.endif
.include <bsd.port.mk>