blob: 6aaa7f49e5109f4a4ce00bd0abba6e07290dc68e (
plain) (
blame)
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
|
PORTNAME= cqueues
DISTVERSIONPREFIX= rel-
DISTVERSION= 20200726
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= freebsd@dns.company
COMMENT= Continuation queues module for Lua
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake lua:51-54,module ssl
USE_GITHUB= yes
GH_ACCOUNT= wahern
MAKE_ENV+= LUA_APIS="${LUA_VER}"
CPPFLAGS+= -I${LUA_INCDIR} -I${OPENSSLINC}
DOCSDIR= ${LUA_DOCSDIR}
EXAMPLESDIR= ${LUA_EXAMPLESDIR}
PORTDOCS= cqueues.pdf
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
EXAMPLES_USES= shebangfix
EXAMPLES_VARS= shebang_files="examples/*"
# Some of the shebangs in examples/* are formatted like this.
lua_OLD_CMD+= /usr/local/lua[0-9]*/bin/lua
post-install:
${STRIP_CMD} ${STAGEDIR}${LUA_MODLIBDIR}/_${PORTNAME}.so
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${BUILD_WRKSRC}/doc/cqueues.pdf ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${BUILD_WRKSRC}/examples && \
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|