2006-12-12 12:39:56 +00:00
|
|
|
# New ports collection makefile for: isomaster
|
|
|
|
# Date created: 2006-12-11
|
|
|
|
# Whom: Babak Farrokhi <farrokhi@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= isomaster
|
2010-01-10 01:33:16 +00:00
|
|
|
PORTVERSION= 1.3.7
|
2012-06-01 05:26:28 +00:00
|
|
|
PORTREVISION= 4
|
2006-12-12 12:39:56 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://littlesvr.ca/isomaster/releases/
|
|
|
|
|
2009-09-26 14:44:53 +00:00
|
|
|
MAINTAINER= avl@FreeBSD.org
|
2006-12-12 12:39:56 +00:00
|
|
|
COMMENT= GTK2 (bootable) CD ISO Image editor
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2009-09-26 14:44:53 +00:00
|
|
|
USE_GNOME= gtk20 pkgconfig intlhack gnomehier desktopfileutils
|
2006-12-12 12:39:56 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2008-07-25 12:48:47 +00:00
|
|
|
MAKE_ENV= DESKTOPPATH=${DESKTOPDIR}
|
2009-09-26 14:44:53 +00:00
|
|
|
MAKE_ARGS= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CFLAGS+= -std=c99 ${PTHREAD_CFLAGS} ${PTHREAD_LIBS:S/"//g} \
|
2007-01-18 08:19:43 +00:00
|
|
|
`pkg-config --cflags gtk+-2.0` \
|
|
|
|
-DICONPATH=\\\"${DATADIR}/icons\\\"
|
2009-09-26 14:44:53 +00:00
|
|
|
LDFLAGS+= ${PTHREAD_LIBS} -lcompat
|
|
|
|
|
2007-01-18 08:19:43 +00:00
|
|
|
.if !defined(WITHOUT_NLS)
|
2009-09-26 14:44:53 +00:00
|
|
|
USE_GETTEXT= yes
|
2007-03-21 09:59:17 +00:00
|
|
|
CFLAGS+= -DLOCALEDIR=\\\"${PREFIX}/share/locale\\\" -DENABLE_NLS
|
2007-01-18 08:19:43 +00:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
2007-08-04 11:41:30 +00:00
|
|
|
PLIST_SUB+= DESKTOPDIR="${DESKTOPDIR:S,^${PREFIX}/,,}"
|
2007-01-18 08:19:43 +00:00
|
|
|
|
2007-03-21 09:59:17 +00:00
|
|
|
MAN1= isomaster.1
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/isomaster ${PREFIX}/bin
|
|
|
|
${MKDIR} ${DATADIR}/icons
|
|
|
|
.for i in isomaster.png go-back-kearone.png folder-new-kearone.png add2-kearone.png extract2-kearone.png delete-kearone.png
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/${i} ${DATADIR}/icons
|
|
|
|
.endfor
|
|
|
|
.if !defined(WITHOUT_NLS)
|
2009-09-26 14:44:53 +00:00
|
|
|
.for i in ar be@latin bg ca cs da de el es et fi fo fr he hr hu id it lv nb nl nn pl pt pt_BR ro ru sk sl sq sr sr@Latn sr@latin sv tr uk zh_CN zh_TW
|
2008-02-02 11:39:00 +00:00
|
|
|
test -d ${PREFIX}/share/locale/${i} || ${MKDIR} ${PREFIX}/share/locale/${i}
|
|
|
|
test -d ${PREFIX}/share/locale/${i}/LC_MESSAGES || ${MKDIR} ${PREFIX}/share/locale/${i}/LC_MESSAGES
|
2007-03-21 09:59:17 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/${i}.mo ${PREFIX}/share/locale/${i}/LC_MESSAGES/isomaster.mo
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/isomaster.1 ${MAN1PREFIX}/man/man1
|
|
|
|
${MKDIR} ${DESKTOPDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/isomaster.desktop ${DESKTOPDIR}
|
2006-12-16 09:45:54 +00:00
|
|
|
|
2009-09-26 14:44:53 +00:00
|
|
|
post-install:
|
|
|
|
@-update-desktop-database
|
|
|
|
|
2007-01-18 08:19:43 +00:00
|
|
|
.include <bsd.port.mk>
|