1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/deskutils/pypanel/Makefile
Grzegorz Blach a781a6e13c - Remove Mk/bsd.efl.mk
- Convert USE_EFL=libtool_hack to USES=libtool
- Convert USE_EFL=imlib2 to LIB_DEPENDS=libImlib2.so:...
- Bump PORTVERSION in graphics/imlib2 and in all ports
  which depends on imlib2

PR:		196062
Approved by:	portmgr
2014-12-27 00:09:02 +00:00

47 lines
1.3 KiB
Makefile

# Created by: Florian Unglaub <flo@btw23.de>
# $FreeBSD$
PORTNAME= pypanel
PORTVERSION= 2.4
PORTREVISION= 11
CATEGORIES= deskutils
MASTER_SITES= SF
DISTNAME= PyPanel-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Desktop panel written in Python
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
libImlib2.so:${PORTSDIR}/graphics/imlib2
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Xlib/X.py:${PORTSDIR}/x11-toolkits/py-xlib
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= python
USE_PYTHON= distutils autoplist
USE_XORG= xft
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/bin/freetype-config|${LOCALBASE}/bin/freetype-config|; \
s|/usr/bin/imlib2-config|${LOCALBASE}/bin/imlib2-config|; \
s|/usr/X11R6/include|${LOCALBASE}/include|; \
s|"COPYING", "README", ||' ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e 's|sysconfig\.get_python_lib()|"${PREFIX}/share"|' \
${WRKSRC}/setup.py ${WRKSRC}/pypanel
@${REINPLACE_CMD} -e \
's|/usr/lib/libImlib2.so.1|${LOCALBASE}/lib/libImlib2.so|' \
${WRKSRC}/setup.py ${WRKSRC}/ppmodule.c
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/pypanel
@${REINPLACE_CMD} -e 's|/usr/share/imlib2|${LOCALBASE}/share/imlib2|' \
${WRKSRC}/pypanelrc
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>