summaryrefslogtreecommitdiff
path: root/net/skystar2/Makefile
blob: 23892be46c9ffe4ce255b5529005e2d12b3761cf (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
48
49
50
51
52
53
54
55
56
57
58
# Created by: Alex Keda <admin@lissyara.su>
# $FreeBSD$

PORTNAME=	skystar2
PORTVERSION=	1.32
PORTEPOCH=	1
CATEGORIES=	net kld
MASTER_SITES=	http://paradox.lissyara.su/ \
		http://lissyara.su/patch/skystar2/
DISTNAME=	${PORTNAME}.8_${PORTVERSION:S/.//}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Kernel module and program for SkyStar2/SkyStar2.8A

USE_BZIP2=	yes

NO_STAGE=	yes
.include <bsd.port.pre.mk>

SYSDIR?=	${SRC_BASE}/sys
KMODDIR=	/boot/modules
PLIST_SUB+=	KMODDIR=${KMODDIR}
PORTDOCS=	readme

pre-fetch:
.if !exists(${SYSDIR}/Makefile)
	@${ECHO} "*************************************************"; \
	${ECHO}  "This port requires the kernel source be available"; \
	${ECHO}  "*************************************************"; \
	exit 1
.endif

post-extract:
	@${REINPLACE_CMD} -e 's#/usr/local#${PREFIX}#g' \
		${WRKSRC}/dvbnet/Makefile \
		${WRKSRC}/dvbtune/Makefile \
		${WRKSRC}/monitor/Makefile

pre-install:
	${INSTALL} -d ${KMODDIR}

post-install:
	@${INSTALL_DATA} ${WRKSRC}/etc/channels.conf.dist ${PREFIX}/etc/
	@${CAT} ${PKGMESSAGE}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
	${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN=		Does not compile on ia64, powerprc, or sparc64
.elif ${OSVERSION} >= 900000
BROKEN=		does not build
.endif

.include <bsd.port.post.mk>