openbsd-ports/x11/pypanel/Makefile
2007-10-08 08:22:38 +00:00

47 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2007/10/08 08:22:44 steven Exp $
SHARED_ONLY= Yes
COMMENT= lightweight panel written in Python and C for X11
DISTNAME= PyPanel-2.4
PKGNAME= ${DISTNAME:L}p2
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
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pypanel/}
MODULES= lang/python
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= ::x11/py-Xlib
LIB_DEPENDS= Imlib2.>=2::graphics/imlib2
USE_X11= Yes
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>