48883af3f6
that makes pypanel load after an interval of time (this is useful in case the window manager hasn't loaded up completely; in which case, pypanel might not display correctly) - install egg-info file - regen patches and fix WANTLIB while here - take over maintainership
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2008/01/15 14:07:39 ajacoutot Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= lightweight panel written in Python and C for X11
|
|
|
|
DISTNAME= PyPanel-2.4
|
|
PKGNAME= ${DISTNAME:L}p3
|
|
CATEGORIES= x11
|
|
|
|
HOMEPAGE= http://pypanel.sourceforge.net/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= X11 Xext Xft freetype m z
|
|
|
|
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>
|