aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pikdev/Makefile
blob: f810e2b2f7da826b6edf663320a6b324c0ec0b7f (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:    pikdev
# Date created:     2006-03-14
# Whom:         Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#

PORTNAME=   pikdev
PORTVERSION=    0.9.2
PORTREVISION=   8
CATEGORIES= devel kde
MASTER_SITES=   http://pikdev.free.fr/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-1

MAINTAINER= acm@FreeBSD.org
COMMENT=    Simple graphic IDE for the development of PIC-based applications

LIB_DEPENDS=    fam.0:${PORTSDIR}/devel/gamin \
        png.6:${PORTSDIR}/graphics/png \
        jpeg.11:${PORTSDIR}/graphics/jpeg
RUN_DEPENDS=    gpasm:${PORTSDIR}/devel/gputils

USE_KDEBASE_VER=3
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+=  -I${LOCALBASE}/include
CONFIGURE_ENV=  LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}"
CONFIGURE_ARGS+=    --with-pic=yes
MAKE_ENV=   LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
SUB_FILES=  pkg-message

OPTIONS=    DEBUG   "Enable debug information"  off \
        NLS "Native Language Support"   on

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64
.endif

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=    --enable-debug=full
.endif

.if defined(WITHOUT_NLS)
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
FLAG_NLS=   true
.endif

post-patch:
    ${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/configure
    ${REINPLACE_CMD} -e 's|-Wmissing-prototypes||g' ${WRKSRC}/configure

post-configure:
    ${REINPLACE_CMD} -e 's|^install-data-am: install-docs install-nls|install-data-am:|g' \
        ${WRKSRC}/doc/en/${MAKEFILE}
.if !defined(FLAG_NLS)
    ${REINPLACE_CMD} -e 's|^install-data-am: install-nls|install-data-am:|g' ${WRKSRC}/po/Makefile
.endif

post-install:
    ${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>