2012-10-18 17:23:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.48 2012/10/18 21:23:51 espie Exp $
|
2000-08-06 07:51:34 -04:00
|
|
|
|
2007-09-15 16:04:18 -04:00
|
|
|
COMMENT= graphics file viewer for X11
|
2000-08-06 07:51:34 -04:00
|
|
|
|
2001-04-13 21:59:57 -04:00
|
|
|
VERSION= 4.1
|
2012-10-18 17:23:51 -04:00
|
|
|
# Debian
|
|
|
|
REV= 17
|
2000-08-06 07:51:34 -04:00
|
|
|
|
2001-04-13 21:59:57 -04:00
|
|
|
DISTNAME= xloadimage.${VERSION}
|
2010-07-30 02:58:57 -04:00
|
|
|
PKGNAME= xloadimage-${VERSION}.${REV}
|
2011-06-23 08:55:30 -04:00
|
|
|
EPOCH= 0
|
2001-04-13 21:59:57 -04:00
|
|
|
CATEGORIES= x11 graphics
|
2000-08-06 07:51:34 -04:00
|
|
|
|
2000-09-23 08:38:21 -04:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
2000-08-06 07:51:34 -04:00
|
|
|
|
2003-10-08 13:13:14 -04:00
|
|
|
# BSD
|
2000-04-03 16:34:52 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 01:29:49 -05:00
|
|
|
|
2004-05-18 04:45:33 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_R5CONTRIB}
|
2012-04-30 15:22:08 -04:00
|
|
|
MASTER_SITES0= ${MASTER_SITE_DEBIAN:=main/x/xloadimage/}
|
2001-04-13 21:59:57 -04:00
|
|
|
|
2012-04-13 06:56:41 -04:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz \
|
|
|
|
xloadimage_${VERSION}-${REV}.debian.tar.gz:0
|
2001-04-13 21:59:57 -04:00
|
|
|
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS= graphics/png \
|
|
|
|
graphics/tiff
|
2010-10-26 12:57:57 -04:00
|
|
|
WANTLIB= X11 c jpeg m png tiff z
|
2001-04-13 21:59:57 -04:00
|
|
|
|
2003-08-22 14:49:46 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2010-10-26 12:57:57 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng \
|
|
|
|
-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2001-10-25 12:14:51 -04:00
|
|
|
NO_REGRESS= Yes
|
2000-08-06 07:51:34 -04:00
|
|
|
|
2012-04-13 06:56:41 -04:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
|
|
|
do-distpatch:
|
|
|
|
@for p in ${WRKDIR}/debian/patches/*.dpatch; do \
|
2003-04-05 21:59:48 -05:00
|
|
|
${PATCH} ${PATCH_DIST_ARGS} < $$p; \
|
|
|
|
done
|
|
|
|
|
2000-08-06 07:51:34 -04:00
|
|
|
post-patch:
|
|
|
|
@chmod a+rx ${WRKSRC}/configure
|
1997-12-19 21:47:06 -05:00
|
|
|
|
2000-08-06 07:51:34 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/xloadimage ${PREFIX}/bin
|
|
|
|
@cd ${PREFIX}/bin && \
|
2001-04-13 21:59:57 -04:00
|
|
|
ln -sf xloadimage xsetbg && \
|
|
|
|
ln -sf xloadimage xview
|
2000-08-06 07:51:34 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/uufilter ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/xloadimage.man ${PREFIX}/man/man1/xloadimage.1
|
2003-04-05 21:59:48 -05:00
|
|
|
@perl -i -pe 's:%%SYSCONFDIR%%:${SYSCONFDIR}:' \
|
|
|
|
${PREFIX}/man/man1/xloadimage.1
|
2000-08-06 07:51:34 -04:00
|
|
|
@cd ${PREFIX}/man/man1 && \
|
2001-04-13 21:59:57 -04:00
|
|
|
ln -sf xloadimage.1 xsetbg.1 && \
|
|
|
|
ln -sf xloadimage.1 xview.1
|
2000-08-06 07:51:34 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/uufilter.man ${PREFIX}/man/man1/uufilter.1
|
2001-04-13 21:59:57 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xloadimage
|
2000-08-06 07:51:34 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/xloadimagerc \
|
2001-07-10 17:11:58 -04:00
|
|
|
${PREFIX}/share/examples/xloadimage/xloadimagerc
|
1997-12-19 21:47:06 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|