blob: b05262150066330cba1c7cecd91e9a3c4867d4c8 (
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
|
# $NetBSD: Makefile.common,v 1.9 2014/10/05 16:41:05 wiz Exp $
#
# used by cad/wcalc/Makefile
# used by cad/wcalc-docs/Makefile
# used by cad/stdio-wcalc/Makefile
# used by cad/sci-wcalc/Makefile
# used by cad/mex-wcalc/Makefile
# used by cad/libwcalc/Makefile
# used by cad/gtk2-wcalc/Makefile
# used by cad/gtk1-wcalc/Makefile
# used by cad/cgi-wcalc/Makefile
DISTNAME= wcalc-1.0
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wcalc/}
MAINTAINER= dmcmahill@NetBSD.org
HOMEPAGE= http://wcalc.sourceforge.net/
DISTINFO_FILE= ${.CURDIR}/../../cad/wcalc/distinfo
PATCHDIR= ${.CURDIR}/../../cad/wcalc/patches
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
USE_PKGLOCALEDIR= yes
# uses vpath and a GNU make pattern rule
USE_TOOLS+= gmake pkg-config
# subdirectory used by wcalc for headers, libexec stuff, etc.
WCALC_DIR= ${DISTNAME}
# where the HTML pages reside:
WCALC_HTMLDIR?= share/${WCALC_DIR}/htdocs
# URI for the static HTML content
WCALC_HTMLPATH?= /wcalc/
# where the CGI programs reside
WCALC_CGIDIR?= libexec/cgi-bin
# URI for the CGI programs
WCALC_CGIPATH?= /cgi-wcalc/
# setup the directories and URI path
CONFIGURE_ARGS+= --with-htmldir=${PREFIX}/${WCALC_HTMLDIR:Q}
CONFIGURE_ARGS+= --with-htmlpath=${WCALC_HTMLPATH:Q}
CONFIGURE_ARGS+= --with-cgibin=${PREFIX}/${WCALC_CGIDIR:Q}
CONFIGURE_ARGS+= --with-cgipath=${WCALC_CGIPATH:Q}
# make sure we can refer to these paths in the MESSAGE
MESSAGE_SUBST+= WCALC_CGIDIR=${WCALC_CGIDIR:Q}
MESSAGE_SUBST+= WCALC_CGIPATH=${WCALC_CGIPATH:Q}
MESSAGE_SUBST+= WCALC_HTMLDIR=${WCALC_HTMLDIR:Q}
MESSAGE_SUBST+= WCALC_HTMLPATH=${WCALC_HTMLPATH:Q}
MESSAGE_SUBST+= WCALC_DIR=${WCALC_DIR:Q}
# and the PLIST too
PLIST_SUBST+= WCALC_CGIDIR=${WCALC_CGIDIR:Q}
PLIST_SUBST+= WCALC_HTMLDIR=${WCALC_HTMLDIR:Q}
PLIST_SUBST+= WCALC_DIR=${WCALC_DIR:Q}
|