aboutsummaryrefslogtreecommitdiffstats
path: root/devel/regexxer/Makefile
blob: 2d1022f48f9d3606f966791e8061c98cdd141951 (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
# New ports collection makefile for:    regexxer
# Date created:             15 February 2003
# Whom:                 Rui Lopes <rui@ruilopes.com>
#
# $FreeBSD$
#

PORTNAME=       regexxer
PORTVERSION=        0.6
CATEGORIES=     devel textproc gnome
MASTER_SITES=       ${MASTER_SITE_SOURCEFORGE} \
            ${MASTER_SITE_SOURCEFORGE:S/$/:pcre/} \
            ftp://ftp.csx.cam.ac.uk/pub/software/programming/%SUBDIR%/:pcre
MASTER_SITE_SUBDIR= ${PORTNAME} \
            ${PCRE_NAME}/:pcre
DISTFILES=      ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
            $(PCRE_NAME)-${PCRE_VERSION}${EXTRACT_SUFX}:pcre

MAINTAINER=     rui@ruilopes.com
COMMENT=        An interactive tool for performing search and replace operations

LIB_DEPENDS=        gnomevfsmm-1.3:${PORTSDIR}/devel/gnome-vfsmm \
            gconfmm-2.0:${PORTSDIR}/devel/gconfmm

USE_X_PREFIX=       yes
USE_REINPLACE=      yes
GNU_CONFIGURE=      yes
USE_GMAKE=      yes
USE_GNOME=      gnomehack gnomeprefix gnometarget
CONFIGURE_ARGS=     PCRE_CONFIG="${PCRE_WRKDIR}/.install/bin/pcre-config"

PCRE_NAME=      pcre
PCRE_VERSION=       4.4
PCRE_WRKDIR=        ${WRKDIR}/${PCRE_NAME}-${PCRE_VERSION}

post-patch:
    @${REINPLACE_CMD} -E 's,^(pcre_.+ sed )-n (.*),\1\2,' ${WRKSRC}/configure

pre-configure:
    @(cd ${PCRE_WRKDIR} && \
        $(ECHO_CMD) "Configuring PCRE... " && \
        ${SETENV} CC="${CC}" CXX="${CXX}" \
        CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
        INSTALL="/usr/bin/install" \
        INSTALL_DATA="${INSTALL_DATA}" \
        INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
        INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
        ./configure --enable-utf8 --disable-shared --prefix="${PCRE_WRKDIR}/.install" && \
        ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} $(INSTALL_TARGET))

.include <bsd.port.mk>