mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
734b61f327
Approved by: portmgr (implicit)
65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= skencil
|
|
PORTVERSION= 1.0.a784
|
|
PORTREVISION= 3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= GOOGLE_CODE
|
|
PROJECTHOST= sk1
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.a/alpha_rev/}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Interactive drawing program
|
|
|
|
LICENSE= LGPL20
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow \
|
|
${PYTHON_PKGNAMEPREFIX}reportlab2>=0:${PORTSDIR}/print/py-reportlab2 \
|
|
${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter \
|
|
${PYXML}
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}alpha
|
|
|
|
USES= tk desktop-file-utils python
|
|
USE_XORG= x11 xext
|
|
USE_PYTHON= distutils autoplist
|
|
PYDISTUTILS_EGGINFO= ${PORTNAME}-${PORTVERSION:R}alpha-py${PYTHON_VER}.egg-info
|
|
|
|
CFLAGS+= -I${TK_INCLUDEDIR} -I${LOCALBASE}/include \
|
|
-L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= README
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
|
|
NLS_USES= gettext
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
"s|/usr/include|${LOCALBASE}/include|g ; \
|
|
s|/usr/lib|${LOCALBASE}/lib|g ; \
|
|
/tcl_ver/s|8\.[0-9]|${TCL_SHLIB_VER}|g ; \
|
|
/libtcl/s|8\.[0-9]|${TCL_SHLIB_VER}|g ; \
|
|
/libraries/s|tcl_ver\])|tcl_ver, 'intl'])|g ; \
|
|
s|/usr/share|${PREFIX}/share|g" ${WRKSRC}/setup.py
|
|
|
|
.if ! ${PORT_OPTIONS:MNLS}
|
|
@${REINPLACE_CMD} -e 's| + messages_dirs||' \
|
|
${WRKSRC}/setup.py
|
|
.endif
|
|
|
|
post-install:
|
|
.for l in streamfilter paxmodule pstokenize _sketchmodule intl skreadmodule \
|
|
_type1module paxtkinter
|
|
${STRIP_CMD} \
|
|
${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/skencil/Sketch/Modules/${l}.so
|
|
.endfor
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|