| @@ -1,29 +1,30 @@ | | | @@ -1,29 +1,30 @@ |
1 | # $NetBSD: Makefile,v 1.1 2021/03/14 09:15:43 pho Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2021/03/28 03:00:17 mef Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= pointfree-1.1.1.7 | | 4 | DISTNAME= pointfree-1.1.1.7 |
5 | PKGNAME= ${DISTNAME} | | 5 | PKGNAME= ${DISTNAME} |
6 | CATEGORIES= devel | | 6 | CATEGORIES= devel |
7 | | | 7 | |
8 | MAINTAINER= pho@cielonegro.org | | 8 | MAINTAINER= pho@cielonegro.org |
9 | COMMENT= Convert Haskell expressions to pointfree form | | 9 | COMMENT= Convert Haskell expressions to pointfree form |
10 | LICENSE= mit | | 10 | LICENSE= mit |
11 | | | 11 | |
12 | # "pointfree.cabal" declares an empty library (exposing no symbols at | | 12 | # "pointfree.cabal" declares an empty library (exposing no symbols at |
13 | # all), and the executable doesn't depend on the library either. This | | 13 | # all), and the executable doesn't depend on the library either. This |
14 | # is not only pointless, but also makes Cabal do a weird thing | | 14 | # is not only pointless, but also makes Cabal do a weird thing |
15 | # possibly due to a bug: it embeds an rpath to the *build directory* | | 15 | # possibly due to a bug: it embeds an rpath to the *build directory* |
16 | # which serves absolutely no purpose. Disable the library as a | | 16 | # which serves absolutely no purpose. Disable the library as a |
17 | # workaround. | | 17 | # workaround. |
18 | SUBST_CLASSES+= 1 | | 18 | SUBST_CLASSES+= 1 |
19 | SUBST_STAGE.1= post-extract | | 19 | SUBST_STAGE.1= post-extract |
20 | SUBST_FILES.1= pointfree.cabal | | 20 | SUBST_FILES.1= pointfree.cabal |
21 | SUBST_SED.1= -e "s|Library|Library+ buildable: False|" | | 21 | SUBST_SED.1= -e "s|Library|Library+ buildable: False|" |
22 | | | 22 | |
23 | SUBST_CLASSES+= 2 | | 23 | SUBST_CLASSES+= 2 |
24 | SUBST_STAGE.2= pre-configure | | 24 | SUBST_STAGE.2= pre-configure |
25 | SUBST_FILES.2= pointfree.cabal | | 25 | SUBST_FILES.2= pointfree.cabal |
26 | SUBST_FILTER_CMD.2= ${TR} '+' \\n | | 26 | SUBST_FILTER_CMD.2= ${TR} '+' \\n |
27 | | | 27 | |
| | | 28 | .include "../../devel/hs-haskell-src-exts/buildlink3.mk" |
28 | .include "../../mk/haskell.mk" | | 29 | .include "../../mk/haskell.mk" |
29 | .include "../../mk/bsd.pkg.mk" | | 30 | .include "../../mk/bsd.pkg.mk" |