blob: 204fc6feb67c7abdaef0ce48877877557e6c8d7b (
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
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
70
71
72
73
74
|
# $NetBSD: Makefile,v 1.7 2004/07/21 22:58:10 schmonz Exp $
#
.include "../../mail/ezmlm/Makefile.common"
DISTNAME= ezmlm-idx-0.421
SITES_${DISTNAME}.tar.gz= http://www.ezmlm.org/archive/0.421/
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://www.ezmlm.org/
COMMENT= ezmlm with enhancements by third parties
CONFLICTS= ezmlm-[0-9]*
DISTFILES+= ${EZMLM_VERS}.tar.gz
PLIST_SRC+= PLIST.idx
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
# ezmlm-idx is a modification of the ezmlm source.
RESTRICTED= "modified source and binaries may not be distributed"
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
USE_PKGINSTALL= YES
PKG_SYSCONFSUBDIR= ezmlm
CFLAGS+= -DPKG_SYSCONFDIR=\"\\\"${PKG_SYSCONFDIR}\"\\\"
EGDIR= ${PREFIX}/share/examples/ezmlm-idx
CONF_FILES= ${EGDIR}/ezcgirc ${PKG_SYSCONFDIR}/ezcgirc
CONF_FILES+= ${EGDIR}/ezmlmrc ${PKG_SYSCONFDIR}/ezmlmrc
INSTALLATION_DIRS= bin man man/man1 man/man5 man/cat1 man/cat5
INSTALLATION_DIRS+= share/examples/ezmlm-idx
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= EZMLM_IDX_USE_MYSQL EZMLM_IDX_USE_PGSQL
.if !empty(EZMLM_IDX_USE_MYSQL:M[yY][eE][sS])
.include "../../databases/mysql-client/buildlink3.mk"
post-configure:
${ECHO} -I${BUILDLINK_PREFIX.mysql-client}/include/mysql > ${WRKSRC}/sub_mysql/conf-sqlcc
${ECHO} -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql -Wl,-R${BUILDLINK_PREFIX.mysql-client}/lib/mysql -lmysqlclient > ${WRKSRC}/sub_mysql/conf-sqlld
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} mysql
.endif
.if !empty(EZMLM_IDX_USE_PGSQL:M[yY][eE][sS])
.include "../../databases/postgresql-lib/buildlink3.mk"
post-configure:
${ECHO} -I${BUILDLINK_PREFIX.postgresql-lib}/include > ${WRKSRC}/sub_pgsql/conf-sqlcc
${ECHO} -L${BUILDLINK_PREFIX.postgresql-lib}/lib -Wl,-R${BUILDLINK_PREFIX.postgresql-lib}/lib -lpq > ${WRKSRC}/sub_pgsql/conf-sqlld
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} pgsql
.endif
post-extract:
@${MV} ${WRKSRC}/* ${WRKDIR}/${EZMLM_VERS}
@${RMDIR} ${WRKSRC}
@${MV} ${WRKDIR}/${EZMLM_VERS} ${WRKSRC}
pre-patch:
@cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < idx.patch
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/ezcgirc ${EGDIR}/ezcgirc
${INSTALL_DATA} ${WRKSRC}/ezmlmrc ${EGDIR}/ezmlmrc
${INSTALL_DATA} ${WRKSRC}/ezmlmglrc ${EGDIR}/ezmlmglrc
${INSTALL_DATA} ${WRKSRC}/ezmlmsubrc ${EGDIR}/ezmlmsubrc
.include "../../mk/bsd.pkg.mk"
|