aboutsummaryrefslogtreecommitdiffstats
path: root/converters/gbase/Makefile
blob: 19d2ad8969ea8714aeb9307c03f45b40d4d0b7c7 (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
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    gbase
# Date created:             Fri Sep  7 22:08:24 EDT 2001
# Whom:                 Patrick Li <pat@databits.net>
#
# $FreeBSD$
#

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

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

OPTIONS=    GTK2 "GTK+-2 support" off

USE_GNOME=  pkgconfig

PLIST_FILES=    bin/${PORTNAME}

.include <bsd.port.pre.mk>

.if defined(WITH_GTK2)
USE_GNOME+= gtk12
GTK_CFLAGS= `pkg-config --cflags gtk+-2.0`
GTK_LIBS=   `pkg-config --libs gtk+-2.0`
.else
USE_GNOME+= gtk12
GTK_CFLAGS= `pkg-config --cflags gtk+`
GTK_LIBS=   `pkg-config --libs gtk+`
.endif

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} ${PREFIX}/bin

.include <bsd.port.post.mk>