aboutsummaryrefslogtreecommitdiffstats
path: root/math/fxt/Makefile
blob: b8b80ed48e0edf1e3d96685695e27e38f9ad47a3 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   fxt
DISTVERSION=    2018.07.03
CATEGORIES= math
MASTER_SITES=   http://www.jjj.de/fxt/

MAINTAINER= ports@FreeBSD.org
COMMENT=    FFT code and related stuff

LICENSE=    GPLv3+
LICENSE_FILE=   ${WRKSRC}/COPYING.txt

WRKSRC=     ${WRKDIR}/${PORTNAME}

USES=       compiler:c++11-lang gmake
MAKE_ENV=   FXT_INSTALL="${INSTALL_DATA}"
MAKEFILE=   makefile

OPTIONS_DEFINE= EXAMPLES

post-patch:
    @${REINPLACE_CMD} -e \
        's|^\(FXT_CXXFLAGS\)|#\1| ; \
         s|\([[:space:]]\)\($$(INCDIR)\)|\1$$(DESTDIR)\2|g ; \
         s|\([[:space:]]\)\($$(LIBDIR)\)|\1$$(DESTDIR)\2|g' \
        ${WRKSRC}/makefile

post-install-EXAMPLES-on:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    (cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>