aboutsummaryrefslogtreecommitdiffstats
path: root/astro/fowsr/Makefile
blob: bd215b0fac7a89472cd3e4e00d64f58edc8088ca (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
# Created by: Alexander Leidinger
# $FreeBSD$

PORTNAME=   fowsr
PORTVERSION=    ${FILEVER}
CATEGORIES= astro

MAINTAINER= netchild@FreeBSD.org
COMMENT=    Fine Offset Weather Station Reader

LICENSE=    GPLv3

FILEVER=    2.0
WRKSRC_SUBDIR=  ${PORTNAME}.src

USE_GITHUB= yes
GH_ACCOUNT= apachler
GH_TAGNAME= 571db38

USES=       gmake dos2unix

PLIST_FILES=    bin/fowsr

post-patch:
    ${REINPLACE_CMD} 's:gcc:${CC}:g' ${WRKSRC}/Makefile
    ${REINPLACE_CMD} 's:/usr/bin/fowsr:fowsr:g ; s://var//://var/tmp//:g' \
        ${WRKSRC}/*.sh ${WRKSRC}/fowsr.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/fowsr ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>