aboutsummaryrefslogtreecommitdiffstats
path: root/converters/gbase/Makefile
blob: 24474a5c96385351534f014071ffe24d195ab504 (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
# Created by: Patrick Li <pat@databits.net>
# $FreeBSD$

PORTNAME=   gbase
PORTVERSION=    0.5
PORTREVISION=   8
CATEGORIES= converters
MASTER_SITES=   http://www.fluxcode.net/files/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Program to convert between the 4 common bases used in programming

LICENSE=    ART10

PLIST_FILES=    bin/${PORTNAME}
USES=       pkgconfig

USE_GNOME+= gtk20
GTK_CFLAGS= `pkg-config --cflags gtk+-2.0`
GTK_LIBS=   `pkg-config --libs gtk+-2.0`

post-patch:
    @${REINPLACE_CMD} -e \
        's|(i == argc)|(i+1 == argc)|' ${WRKSRC}/${PORTNAME}.c

do-build:
    cd ${WRKSRC}; ${CC} ${CFLAGS} ${GTK_CFLAGS} ${PORTNAME}.c \
        -o ${PORTNAME} ${GTK_LIBS}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>