openbsd-ports/sysutils/backintime/Makefile.inc
2013-03-11 13:42:59 +00:00

43 lines
931 B
Makefile

# $OpenBSD: Makefile.inc,v 1.8 2013/03/11 13:42:59 sthen Exp $
V= 1.0.8
BASENAME= backintime-${V}
DISTNAME= ${BASENAME}_src
CATEGORIES+= sysutils
HOMEPAGE= http://backintime.le-web.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${HOMEPAGE}download/backintime/
MODULES+= lang/python
NO_TEST= Yes
WRKDIST= ${WRKDIR}/${BASENAME}
CONFIGURE_STYLE= simple
MAKE_ENV= DEST=${WRKINST}${PREFIX}
pre-configure:
.for i in ${SUBST_FILES}
${SUBST_CMD} ${WRKSRC}/${i}
.endfor
perl -pi -e 's,/bin/bash,/bin/sh,,;' \
-e 's,^PREFIX.*,,;' \
-e 's,^DEST.*,,;' \
-e 's,--mode=,-m ,g' \
${WRKSRC}/{configure,Makefile.template}
# clean up the mess
post-install:
mv ${PREFIX}/share/man/* ${PREFIX}/man
gunzip ${PREFIX}/man/man[1-9]/*.gz
rm -rf ${PREFIX}/share/{doc/backintime-*,gnome,man,omf}
rm -f ${PREFIX}/share/doc/backintime/{CHANGES,README,VERSION}
rm -f ${PREFIX}/share/applications/backintime-gnome-root.desktop