Lines 2-25
Link Here
|
2 |
# $FreeBSD: head/comms/owfs/Makefile 539491 2020-06-17 18:17:45Z sunpoet $ |
2 |
# $FreeBSD: head/comms/owfs/Makefile 539491 2020-06-17 18:17:45Z sunpoet $ |
3 |
|
3 |
|
4 |
PORTNAME= owfs |
4 |
PORTNAME= owfs |
5 |
PORTVERSION= 3.2p3 |
5 |
PORTVERSION= 3.2p4 |
6 |
DISTVERSIONPREFIX= v |
|
|
7 |
PORTREVISION= 1 |
6 |
PORTREVISION= 1 |
8 |
CATEGORIES= comms |
7 |
CATEGORIES= comms |
|
|
8 |
MASTER_SITES= https://github.com/owfs/owfs/releases/download/v${PORTVERSION}/ |
9 |
|
9 |
|
10 |
MAINTAINER= johan@stromnet.se |
10 |
MAINTAINER= johan@stromnet.se |
11 |
COMMENT= 1-wire file system implementation |
11 |
COMMENT= 1-wire file system implementation |
12 |
|
12 |
|
13 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv2 |
14 |
|
14 |
|
15 |
USES= autoreconf gmake libtool pkgconfig |
15 |
BUILD_DEPENDS= ${LOCALBASE}/include/uthash.h:devel/uthash |
|
|
16 |
|
17 |
USES= gmake libtool pkgconfig |
16 |
|
18 |
|
17 |
GNU_CONFIGURE= yes |
19 |
GNU_CONFIGURE= yes |
18 |
INSTALL_TARGET= install-strip |
20 |
INSTALL_TARGET= install-strip |
19 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
20 |
|
22 |
|
21 |
USE_GITHUB= yes |
|
|
22 |
|
23 |
.include "Makefile.options" |
23 |
.include "Makefile.options" |
24 |
|
24 |
|
25 |
OPTIONS_SUB=yes |
25 |
OPTIONS_SUB=yes |
Lines 50-56
Link Here
|
50 |
OWTAP_USES= tk:wrapper |
50 |
OWTAP_USES= tk:wrapper |
51 |
|
51 |
|
52 |
OWMALLOC_CONFIGURE_ENABLE= owmalloc |
52 |
OWMALLOC_CONFIGURE_ENABLE= owmalloc |
53 |
OWTRAFFIC_CONFIGURE_ENABLE= owtraffic |
|
|
54 |
|
53 |
|
55 |
OWMON_CONFIGURE_ENABLE= owmon |
54 |
OWMON_CONFIGURE_ENABLE= owmon |
56 |
OWMON_USES= tk:wrapper |
55 |
OWMON_USES= tk:wrapper |
Lines 65-73
Link Here
|
65 |
# Broken/untested |
64 |
# Broken/untested |
66 |
OWPHP_CONFIGURE_ENABLE= owphp |
65 |
OWPHP_CONFIGURE_ENABLE= owphp |
67 |
|
66 |
|
68 |
OWPYTHON_CONFIGURE_ENABLE= owpython |
|
|
69 |
OWPYTHON_USES= python:2.7 |
70 |
|
71 |
# Additional CONFIGURE_ARGS is done below |
67 |
# Additional CONFIGURE_ARGS is done below |
72 |
OWTCL_CONFIGURE_ENABLE= owtcl |
68 |
OWTCL_CONFIGURE_ENABLE= owtcl |
73 |
OWTCL_USES= tcl |
69 |
OWTCL_USES= tcl |
Lines 100-114
Link Here
|
100 |
PLIST_SUB+= OWNETPERL="@comment " |
96 |
PLIST_SUB+= OWNETPERL="@comment " |
101 |
.endif |
97 |
.endif |
102 |
|
98 |
|
103 |
# If OW Network and Python is requested, we get ownet python files |
99 |
# If Perl or PHP is requested, enable SWIG |
104 |
.if ${PORT_OPTIONS:MOWPYTHON} && ${PORT_OPTIONS:MOWNET} |
100 |
.if ${PORT_OPTIONS:MOWPERL} || ${PORT_OPTIONS:MOWPHP} |
105 |
PLIST_SUB+= OWNETPYTHON="" |
|
|
106 |
.else |
107 |
PLIST_SUB+= OWNETPYTHON="@comment " |
108 |
.endif |
109 |
|
110 |
# If Perl, Python or PHP is requested, enable SWIG |
111 |
.if ${PORT_OPTIONS:MOWPERL} || ${PORT_OPTIONS:MOWPYTHON} || ${PORT_OPTIONS:MOWPHP} |
112 |
BUILD_DEPENDS+= swig:devel/swig |
101 |
BUILD_DEPENDS+= swig:devel/swig |
113 |
CONFIGURE_ARGS+= --enable-swig SWIG=${LOCALBASE}/bin/swig |
102 |
CONFIGURE_ARGS+= --enable-swig SWIG=${LOCALBASE}/bin/swig |
114 |
.else |
103 |
.else |
Lines 132-146
Link Here
|
132 |
@echo "Preparing build using autotools..." |
121 |
@echo "Preparing build using autotools..." |
133 |
|
122 |
|
134 |
# Workarounds for different problems |
123 |
# Workarounds for different problems |
135 |
post-install-OWPYTHON-on: |
|
|
136 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/python2.7/site-packages/ow/_OW.so |
137 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.* |
138 |
(cd ${STAGEDIR}${PREFIX} \ |
139 |
&& ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ |
140 |
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) |
141 |
(cd ${STAGEDIR}${PREFIX} \ |
142 |
&& ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ |
143 |
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) |
144 |
|
124 |
|
145 |
post-install-OWPERL-on: |
125 |
post-install-OWPERL-on: |
146 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/OW/OW.so |
126 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/OW/OW.so |