mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
98bf25875a
PR: 278577 Exp-run by: antoine
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
PORTNAME= xloadimage
|
|
PORTVERSION= 4.1.24
|
|
PORTREVISION= 3
|
|
CATEGORIES= x11 graphics
|
|
MASTER_SITES= DEBIAN_POOL
|
|
DISTNAME= ${PORTNAME}.${VERSION}
|
|
DISTFILES= ${DISTNAME:S/./_/}.orig${EXTRACT_SUFX} \
|
|
${DISTNAME:S/./_/}-${REVISION}.debian.tar.xz
|
|
|
|
MAINTAINER= ak@FreeBSD.org
|
|
COMMENT= X11 Image Loading Utility
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
|
libtiff.so:graphics/tiff
|
|
|
|
CONFLICTS_INSTALL= xli
|
|
|
|
EXTRA_PATCHES= ${WRKDIR}/debian/patches/*.patch
|
|
IGNORE_PATCHES= 07_SYSPATHFILE.patch 24_libtiff5.patch \
|
|
25_hardening-flags.patch 26_uufilter-implicit-declaration.patch \
|
|
30_libtiff5.patch 31_reproducible-build.patch
|
|
|
|
PATCH_STRIP= -p1
|
|
VERSION= ${PORTVERSION:R}
|
|
REVISION= ${PORTVERSION:E}
|
|
|
|
USES= jpeg xorg
|
|
USE_XORG= x11
|
|
GNU_CONFIGURE= yes
|
|
|
|
# Temporary fix, waiting for k&r cleanup patch from debian
|
|
CFLAGS+= -Wno-int-conversion
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
pre-patch:
|
|
@${RM} ${IGNORE_PATCHES:S,^,${WRKDIR}/debian/patches/,}
|
|
|
|
post-patch:
|
|
@${CHMOD} a+rx ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|TIFFHeader|TIFFHeaderClassic|g' \
|
|
${WRKSRC}/tiff.c
|
|
@${REINPLACE_CMD} -e \
|
|
's:/etc/X11/Xloadimage:${PREFIX}/etc/xloadimagerc: ; \
|
|
s:/usr/lib/xloadimagerc:${PREFIX}/etc/xloadimagerc: ; \
|
|
s:/usr/include/X11/bitmaps:${PREFIX}/include/X11/bitmaps:' \
|
|
${WRKSRC}/xloadimage.man
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xloadimage ${STAGEDIR}${PREFIX}/bin
|
|
@(cd ${STAGEDIR}${PREFIX}/bin && \
|
|
${LN} -sf xloadimage xsetbg && \
|
|
${LN} -sf xloadimage xview )
|
|
${INSTALL_PROGRAM} ${WRKSRC}/uufilter ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/uufilter.man ${STAGEDIR}${PREFIX}/share/man/man1/uufilter.1
|
|
${INSTALL_MAN} ${WRKSRC}/xloadimage.man ${STAGEDIR}${PREFIX}/share/man/man1/xloadimage.1
|
|
@(cd ${STAGEDIR}${PREFIX}/share/man/man1 && \
|
|
${LN} -sf xloadimage.1 xsetbg.1 && \
|
|
${LN} -sf xloadimage.1 xview.1 )
|
|
${INSTALL_DATA} ${WRKSRC}/xloadimagerc ${STAGEDIR}${PREFIX}/etc/xloadimagerc.sample
|
|
|
|
.include <bsd.port.mk>
|