summaryrefslogtreecommitdiff
path: root/mail/squirrelmail/plugin.mk
blob: 8290a88c9d2a2c9ab77860600cfec439bb5ef68c (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
# $NetBSD: plugin.mk,v 1.7 2008/05/27 12:40:37 martti Exp $

DISTNAME?=		${PLUGIN_NAME}-${PLUGIN_VERSION}
PKGNAME=		sm-${PLUGIN_NAME}-${PLUGIN_VERSION}
CATEGORIES?=		mail
MASTER_SITES?=		http://www.squirrelmail.org/plugins/

WRKSRC?=		${WRKDIR}/${PLUGIN_NAME}
NO_CONFIGURE?=		YES
NO_BUILD?=		YES

SM_PLUGINDIR=		share/squirrelmail/plugins
PLUGIN_DIR=		${SM_PLUGINDIR}/${PLUGIN_NAME}
FULL_PLUGIN_DIR=	${PREFIX}/${PLUGIN_DIR}

INSTALLATION_DIRS+=	${PLUGIN_DIR}

PLIST_SUBST+=		PLUGIN_DIR=${PLUGIN_DIR}

USE_TOOLS+=		pax

do-install:
	cd ${WRKSRC} && \
		find . -type f ! -name '*.orig' 2>/dev/null | \
		pax -rw ${DESTDIR}${FULL_PLUGIN_DIR}

.include "../../mail/squirrelmail/buildlink3.mk"