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