aboutsummaryrefslogtreecommitdiff
path: root/graphics/fotoxx/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2015-12-22 04:07:14 +0000
committerMartin Wilke <miwi@FreeBSD.org>2015-12-22 04:07:14 +0000
commita71c16c37c4f9fdebc99c7288249c6475b11abfb (patch)
treec20af7a36b97dddd8e65d28557c33e107f25fa89 /graphics/fotoxx/Makefile
parente0f113acef4b6e2ef48927ffa4cad8f3602ccf02 (diff)
downloadports-a71c16c37c4f9fdebc99c7288249c6475b11abfb.tar.gz
ports-a71c16c37c4f9fdebc99c7288249c6475b11abfb.zip
Notes
Diffstat (limited to 'graphics/fotoxx/Makefile')
-rw-r--r--graphics/fotoxx/Makefile63
1 files changed, 25 insertions, 38 deletions
diff --git a/graphics/fotoxx/Makefile b/graphics/fotoxx/Makefile
index daa7612d63f2..d0531abd5c49 100644
--- a/graphics/fotoxx/Makefile
+++ b/graphics/fotoxx/Makefile
@@ -2,10 +2,11 @@
# $FreeBSD$
PORTNAME= fotoxx
-PORTVERSION= 14.02.2
+PORTVERSION= 15.05
CATEGORIES= graphics
-MASTER_SITES= http://www.kornelix.com/uploads/1/3/0/3/13035936/ \
- LOCAL/mandree
+MASTER_SITES= GENTOO/distfiles \
+ http://fossies.org/linux/misc/legacy/ \
+ http://www.kornelix.com/uploads/1/3/0/3/13035936/
MAINTAINER= ports@FreeBSD.org
COMMENT= Application to organize and edit image collections
@@ -13,49 +14,35 @@ COMMENT= Application to organize and edit image collections
LICENSE= GPLv3
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils \
- ufraw-batch:${PORTSDIR}/graphics/ufraw \
+ dcraw:${PORTSDIR}/graphics/dcraw \
exiftool:${PORTSDIR}/graphics/p5-Image-ExifTool \
- dcraw:${PORTSDIR}/graphics/dcraw
+ ufraw-batch:${PORTSDIR}/graphics/ufraw
-USES= execinfo gmake desktop-file-utils pkgconfig
-USE_GNOME= gtk30
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USES= desktop-file-utils execinfo gmake pkgconfig
+USE_GNOME= gtk30
ALL_TARGET= fotoxx
-INSTALL_TARGET= install MANDIR=${PREFIX}/man/man1/
-LDFLAGS+= -O3 -g -Wall -rdynamic -lexecinfo
+PORTDOCS= *
+PORTDATA= *
+PLIST_FILES= bin/fotoxx \
+ man/man1/fotoxx.1.gz \
+ share/appdata/fotoxx.appdata.xml \
+ share/applications/fotoxx.desktop
OPTIONS_DEFINE= DOCS
post-patch:
- @# drop xdg-desktop-menu calls, they fail
- ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
- -e '/xdg-desktop-menu/d' \
- -e '/rm -f -R/d' \
- ${WRKSRC}/Makefile
- @# replace obsolete include files
- ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' \
- ${WRKSRC}/zfuncs.h
- @# fix up icon path in XDG .desktop file
- ${REINPLACE_CMD} -e 's}/usr/share/fotoxx}${DATADIR}}' \
- ${WRKSRC}/desktop
+ @${REINPLACE_CMD} -e \
+ 's|-ggdb|| ; \
+ s|-rdynamic|-Wl,-export-dynamic| ; \
+ s|share/man|man| ; \
+ s|-lpthread|-lexecinfo|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e \
+ 's|/usr/share/fotoxx|${DATADIR}|' ${WRKSRC}/desktop
post-install:
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fotoxx
-
-.include <bsd.port.pre.mk>
-
-# These hacks are required because the nginx server at the primary
-# master site and most of our fetch(1) versions do not get along well.
-# This code can be removed once r261263 has been merged from
-# base/head into all ports-supported releases.
-# We depend on cURL unless wget is in $LOCALPATH:
-DISABLE_SIZE= yes
-.if exists(${LOCALBASE}/bin/wget) && !exists(${PREFIX}/bin/curl)
-FETCH_CMD= ${LOCALBASE}/bin/wget -c -nc
-.else
-FETCH_DEPENDS= curl:${PORTSDIR}/ftp/curl
-FETCH_CMD= ${PREFIX}/bin/curl -OL0C -
-.endif
-
-.include <bsd.port.post.mk>
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fotoxx
+
+.include <bsd.port.mk>