aboutsummaryrefslogtreecommitdiffstats
path: root/print/scribus-devel/Makefile
blob: 2eede24dc051965d49aa472af30f423ebb1dcc15 (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
# ex:ts=8
# Ports collection makefile for:    scribus
# Date created:         Mar 15, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   scribus
PORTVERSION=    0.6
CATEGORIES= print
MASTER_SITES=   http://web2.altmuehlnet.de/fschmid/

MAINTAINER= ports@geeksrus.net

RUN_DEPENDS=    gs:${PORTSDIR}/print/ghostscript-gnu

USE_QT_VER= 2
USE_XLIB=   yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes

INSTALLS_SHLIB= yes
LDCONFIG_DIRS=  %%PREFIX%%/share/scribus/libs \
        %%PREFIX%%/share/scribus/plugins

post-patch:
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e "s|docs icons|icons|" \
        ${WRKSRC}/scribus/Makefile.in
.endif
    @${FIND} ${WRKSRC} -type f | \
        ${XARGS} -n 10 ${REINPLACE_CMD} \
        -e 's|share/scribus/doc|share/doc/scribus|'

.include <bsd.port.mk>
style="color:#003cff"># - Maintainer can set an arbitrary version of OpenLDAP by using it. # IGNORE_OPENLDAP_OPENLDAP # - This variable can be defined if the ports doesn't support # one or more version of OpenLDAP. # WITH_OPENLDAP_VER # - User defined variable to set OpenLDAP version. # OPENLDAP_VER # - Detected OpenLDAP version. .if defined(USE_OPENLDAP) DEFAULT_OPENLDAP_VER?= 24 # OpenLDAP client versions currently supported OPENLDAP23_LIBVER= 2.3.2 OPENLDAP24_LIBVER= 2.4.6 .if exists(${LOCALBASE}/bin/ldapwhoami) _OPENLDAP_VER!= ${LOCALBASE}/bin/ldapwhoami -VV 2>&1 | ${GREP} ldapwhoami | ${SED} -E 's/.*OpenLDAP: ldapwhoami (2)\.(3|4).*/\1\2/' .endif .if defined(WANT_OPENLDAP_VER) .if defined(WITH_OPENLDAP_VER) && ${WITH_OPENLDAP_VER} != ${WANT_OPENLDAP_VER} IGNORE= cannot install: the port wants openldap${WANT_OPENLDAP_VER}-client and you try to install openldap${WITH_OPENLDAP_VER}-client. .endif OPENLDAP_VER= ${WANT_OPENLDAP_VER} .elif defined(WITH_OPENLDAP_VER) OPENLDAP_VER= ${WITH_OPENLDAP_VER} .else .if defined(_OPENLDAP_VER) OPENLDAP_VER= ${_OPENLDAP_VER} .else OPENLDAP_VER= ${DEFAULT_OPENLDAP_VER} .endif .endif # WANT_OPENLDAP_VER .if defined(_OPENLDAP_VER) .if ${_OPENLDAP_VER} != ${OPENLDAP_VER} IGNORE= cannot install: OpenLDAP versions mismatch: openldap${_OPENLDAP_VER}-client is installed and wanted version is openldap${OPENLDAP_VER}-client .endif .endif CFLAGS+= -DLDAP_DEPRECATED .if defined(WANT_OPENLDAP_SASL) _OPENLDAP_FLAVOUR= -sasl .else _OPENLDAP_FLAVOUR= .endif # And now we are checking if we can use it .if defined(OPENLDAP${OPENLDAP_VER}_LIBVER) # compatability shim .if defined(BROKEN_WITH_OPENLDAP) IGNORE_WITH_OPENLDAP=${BROKEN_WITH_OPENLDAP} .endif .if defined(IGNORE_WITH_OPENLDAP) . for VER in ${IGNORE_WITH_OPENLDAP} . if (${OPENLDAP_VER} == "${VER}") IGNORE= cannot install: doesn't work with OpenLDAP version: ${OPENLDAP_VER} (Doesn't support OpenLDAP ${IGNORE_WITH_OPENLDAP}) . endif . endfor .endif # IGNORE_WITH_OPENLDAP LIB_DEPENDS+= ldap-${OPENLDAP${OPENLDAP_VER}_LIBVER}:${PORTSDIR}/net/openldap${OPENLDAP_VER}${_OPENLDAP_FLAVOUR}-client .else IGNORE= cannot install: unknown OpenLDAP version: ${OPENLDAP_VER} .endif # Check for correct libs .endif # defined(USE_OPENLDAP) .endif # defined(_POSTMKINCLUDED) && !defined(Ldap_Post_Include)