aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/nathive/Makefile
blob: 73ee42ef5057ed8fa52b1719627bde95f39ad86a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# New ports collection makefile for:    nathive
# Date created:     24 Nov 2008
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   nathive
PORTVERSION=    0.811
CATEGORIES= graphics
MASTER_SITES=   http://www.nathive.org/packages/ \
        http://mirror.amdmi3.ru/
DISTNAME=   ${PORTNAME}_${PORTVERSION}_source

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Lightweight image editor

USE_GNOME=  pkgconfig glib20 gtk20
NO_WRKSUBDIR=   yes

post-patch:
    @${REINPLACE_CMD} -e '/define.*PATH/ s|".*"|"${DATADIR}/"|' \
        ${WRKSRC}/nathive.c

do-build:
    cd ${WRKSRC} && \
        ${CC} ${CFLAGS} `pkg-config --cflags --libs glib-2.0` \
        `pkg-config --cflags --libs gtk+-2.0` nathive.c -o nathive

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/nathive ${PREFIX}/bin
    ${MKDIR} ${DATADIR}
    cd ${WRKSRC} && \
        ${COPYTREE_SHARE} "cfg img lang palettes text" ${DATADIR}

.include <bsd.port.mk>