summaryrefslogtreecommitdiff
path: root/www/php4-imap/Makefile
blob: 2ac4725fe5c7db9d6fbea3344e560ac59e31297d (plain)
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
# $NetBSD: Makefile,v 1.7 2001/03/27 03:20:25 hubertf Exp $

.include "../../www/php4/Makefile.module"

MODNAME=		imap
CATEGORIES+=		mail
PHP_PKG_VERS=		nb2

COMMENT=		PHP4 extension for IMAP (Internet Mailbox Access Protocol)

BUILD_DEPENDS+=		imap-uw>=2000.0.3nb1:../../mail/imap-uw

CCLIENT_PIC_LIB=	${LOCALBASE}/lib/libc-client_pic.a

CONFIGURE_ARGS+=	--with-${MODNAME}=shared,${LOCALBASE}
CONFIGURE_ARGS+=	--with-${MODNAME}-ssl=shared,${SSLBASE}

USE_SSL=		# defined

MAKE_ENV+=		LTLIBRARY_OBJECTS_X="${CCLIENT_PIC_LOBJS}"

pre-build:
	${MKDIR} ${WRKSRC}/ext/imap/.libs;				\
	cd ${WRKSRC}/ext/imap/.libs;					\
	${AR} x ${CCLIENT_PIC_LIB}
	cd ${WRKSRC}/ext/imap;						\
	for file in ${CCLIENT_PIC_OBJS}; do				\
		base=`basename $${file} .o`;				\
		${RM} -f $${base}.lo;					\
		( ${ECHO} "#";						\
		  ${ECHO} "# Generated by libtool";			\
		  ${ECHO} "#";						\
		  ${ECHO} "pic_object=.libs/$${file}";			\
		  ${ECHO} "non_pic_object=.libs/$${file}";		\
		) > $${base}.lo;					\
		${LN} -sf $${base}.lo $${base}.slo;			\
	done

.include "../../mk/bsd.pkg.mk"

.if exists(${CCLIENT_PIC_LIB}) && !defined(CCLIENT_PIC_OBJS)
CCLIENT_PIC_OBJS!=	${AR} t ${CCLIENT_PIC_LIB}
CCLIENT_PIC_LOBJS=	${CCLIENT_PIC_OBJS:S/.o/.lo/g}
.endif