mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
a318c61145
- Bump PORTREVISION PR: 87854 Reported by: pointyhat via kris Submitted by: Andrey Slusar <anrays@gmail.com> (maintainer)
64 lines
1.4 KiB
Makefile
64 lines
1.4 KiB
Makefile
# New ports collection makefile for: ida
|
|
# Date created: Thu Aug 19 21:13:58 UTC 2004
|
|
# Whom: Andrey Slusar <anray@inet.ua>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ida
|
|
PORTVERSION= 0.21
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://dl.bytesex.org/releases/fbida/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= anrays@gmail.com
|
|
COMMENT= Small and fast motif-based image viewer and editor
|
|
|
|
OPTIONS= LIBEXIF "Build with libexif" on
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
|
ungif.5:${PORTSDIR}/graphics/libungif
|
|
|
|
USE_GMAKE= yes
|
|
USE_X_PREFIX= yes
|
|
USE_MOTIF= yes
|
|
USE_PERL5_BUILD=yes
|
|
USE_REINPLACE= yes
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
|
|
MAKEFILE= ${WRKSRC}/GNUmakefile
|
|
|
|
MAN1= ida.1
|
|
PORTDOCS= README TODO INSTALL
|
|
|
|
PLIST_FILES= bin/exiftran bin/ida lib/X11/app-defaults/Ida
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
pre-fetch:
|
|
.if exists(${LOCALBASE}/lib/libexif.so)
|
|
WITH_LIBEXIF= yes
|
|
.endif
|
|
.if defined(WITH_LIBEXIF)
|
|
LIB_DEPENDS+= exif.12:${PORTSDIR}/graphics/libexif
|
|
.endif
|
|
|
|
post-patch:
|
|
.if ${OSVERSION} < 500000
|
|
@${REINPLACE_CMD} -e 's|PRId32|"d"|g' -e 's|PRIx32|"x"|g' \
|
|
${WRKSRC}/tiff.c ${WRKSRC}/xwd.c
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/exiftran ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for a in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${a} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|