aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorak <ak@FreeBSD.org>2013-09-26 03:25:12 +0800
committerak <ak@FreeBSD.org>2013-09-26 03:25:12 +0800
commit3703b1edefbe8b1d3eeb5d3391cfdbaf7a8c1057 (patch)
tree5e7ba17312dc4c6dfff041fce42d024cc1bd51fe /x11
parent33cdc9b9bb80bd784571797f927e0f2e61c5f749 (diff)
downloadfreebsd-ports-gnome-3703b1edefbe8b1d3eeb5d3391cfdbaf7a8c1057.tar.gz
freebsd-ports-gnome-3703b1edefbe8b1d3eeb5d3391cfdbaf7a8c1057.tar.zst
freebsd-ports-gnome-3703b1edefbe8b1d3eeb5d3391cfdbaf7a8c1057.zip
- Support STAGEDIR
- Convert to new LIB_DEPENDS syntax Reviewed by: eadler
Diffstat (limited to 'x11')
-rw-r--r--x11/xloadimage/Makefile30
-rw-r--r--x11/xloadimage/pkg-plist4
2 files changed, 17 insertions, 17 deletions
diff --git a/x11/xloadimage/Makefile b/x11/xloadimage/Makefile
index 24d38f2d52c2..4f24c6e8249b 100644
--- a/x11/xloadimage/Makefile
+++ b/x11/xloadimage/Makefile
@@ -14,9 +14,9 @@ COMMENT= X11 Image Loading Utility
LICENSE= MIT
-LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
- png15:${PORTSDIR}/graphics/png \
- tiff:${PORTSDIR}/graphics/tiff
+LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
+ libpng15.so:${PORTSDIR}/graphics/png \
+ libtiff.so:${PORTSDIR}/graphics/tiff
CONFLICTS_INSTALL= xli-*
@@ -32,11 +32,6 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-MAN1= xloadimage.1 uufilter.1
-MLINKS= xloadimage.1 xsetbg.1 \
- xloadimage.1 xview.1
-
-NO_STAGE= yes
post-patch:
@${CHMOD} a+rx ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|TIFFHeader|TIFFHeaderClassic|g' \
@@ -48,15 +43,16 @@ post-patch:
${WRKSRC}/xloadimage.man
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/xloadimage ${PREFIX}/bin
- @cd ${PREFIX}/bin && \
+ ${INSTALL_PROGRAM} ${WRKSRC}/xloadimage ${STAGEDIR}${PREFIX}/bin
+ @(cd ${STAGEDIR}${PREFIX}/bin && \
${LN} -sf xloadimage xsetbg && \
- ${LN} -sf xloadimage xview
- ${INSTALL_PROGRAM} ${WRKSRC}/uufilter ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/xloadimage.man ${MAN1PREFIX}/man/man1/xloadimage.1
- ${INSTALL_MAN} ${WRKSRC}/uufilter.man ${MAN1PREFIX}/man/man1/uufilter.1
- ${INSTALL_DATA} ${WRKSRC}/xloadimagerc ${PREFIX}/etc/xloadimagerc.sample
- @[ -f ${PREFIX}/etc/xloadimagerc ] || ${CP} -f ${PREFIX}/etc/xloadimagerc.sample \
- ${PREFIX}/etc/xloadimagerc
+ ${LN} -sf xloadimage xview )
+ ${INSTALL_PROGRAM} ${WRKSRC}/uufilter ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/uufilter.man ${STAGEDIR}${MAN1PREFIX}/man/man1/uufilter.1
+ ${INSTALL_MAN} ${WRKSRC}/xloadimage.man ${STAGEDIR}${MAN1PREFIX}/man/man1/xloadimage.1
+ @(cd ${STAGEDIR}${MAN1PREFIX}/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>
diff --git a/x11/xloadimage/pkg-plist b/x11/xloadimage/pkg-plist
index b6d719229126..79d55782a09f 100644
--- a/x11/xloadimage/pkg-plist
+++ b/x11/xloadimage/pkg-plist
@@ -2,6 +2,10 @@ bin/uufilter
bin/xloadimage
bin/xsetbg
bin/xview
+man/man1/uufilter.1.gz
+man/man1/xloadimage.1.gz
+man/man1/xsetbg.1.gz
+man/man1/xview.1.gz
@unexec if cmp -s %D/etc/xloadimagerc.sample %D/etc/xloadimagerc; then rm -f %D/etc/xloadimagerc; fi
etc/xloadimagerc.sample
@exec if [ ! -f %D/etc/xloadimagerc ] ; then cp -p %D/%F %B/xloadimagerc; fi