# New ports collection makefile for:	isomaster
# Date created:		2006-12-11
# Whom:			Babak Farrokhi <farrokhi@FreeBSD.org>
#
# $FreeBSD: ports/sysutils/isomaster/Makefile,v 1.9 2007/08/28 10:12:54 miwi Exp $
#

PORTNAME=	isomaster
PORTVERSION=	1.1
CATEGORIES=	sysutils
MASTER_SITES=	http://littlesvr.ca/isomaster/releases/

MAINTAINER=	farrokhi@FreeBSD.org
COMMENT=	GTK2 (bootable) CD ISO Image editor

USE_BZIP2=	yes
USE_GNOME=	gtk20 pkgconfig intlhack gnomehier
USE_GMAKE=	yes
USE_GETTEXT=	yes

MAKE_ENV=	PREFIX=${PREFIX} DESKTOPPATH=${DESKTOPDIR}
MAKE_ARGS=	CFLAGS="${CFLAGS}"
CFLAGS+=	${PTHREAD_CFLAGS} ${PTHREAD_LIBS:S/"//g} \
		`pkg-config --cflags gtk+-2.0` \
		-DICONPATH=\\\"${DATADIR}/icons\\\"
.if !defined(WITHOUT_NLS)
CFLAGS+=	-DLOCALEDIR=\\\"${PREFIX}/share/locale\\\" -DENABLE_NLS
PLIST_SUB+=	NLS=""
.else
PLIST_SUB+=	NLS="@comment "
.endif
PLIST_SUB+=	DESKTOPDIR="${DESKTOPDIR:S,^${PREFIX}/,,}"

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)
.for i in bg de es fr it nl pl pt ro ru sk sq zh_CN zh_TW
	${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}

.include <bsd.port.mk>


syntax highlighted by Code2HTML, v. 0.9.1