openbsd-ports/x11/pypanel/Makefile
2011-09-16 12:29:12 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2011/09/16 12:29:17 espie Exp $
SHARED_ONLY= Yes
COMMENT= lightweight panel written in Python and C for X11
DISTNAME= PyPanel-2.4
PKGNAME= ${DISTNAME:L}
REVISION= 9
CATEGORIES= x11
HOMEPAGE= http://pypanel.sourceforge.net/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xext Xft freetype m z Imlib2
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pypanel/}
MODULES= lang/python
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= x11/py-Xlib
LIB_DEPENDS= graphics/imlib2
NO_REGRESS= Yes
PYTHONPATH= ${WRKINST}${MODPY_SITEPKG}
pre-configure:
@perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g; \
s,!!X11BASE!!,${X11BASE},g;' ${WRKSRC}/setup.py
@perl -pi -e 's,/etc,${SYSCONFDIR},g' ${WRKSRC}/pypanel
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pypanel
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pypanel
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/pypanel
${INSTALL_DATA_DIR} ${PYTHONPATH}/pypanel
${INSTALL_DATA} ${WRKSRC}/ppicon.png ${PYTHONPATH}/pypanel
${INSTALL_DATA} ${WRKSRC}/pypanelrc ${PREFIX}/share/examples/pypanel
.include <bsd.port.mk>