aboutsummaryrefslogtreecommitdiffstats
path: root/net/skystar2/Makefile
blob: 9dcd7a0c9662189076efc88bfd063129cfa061f8 (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
# New ports collection makefile for:    SkyStar2
# Date created:     15 November 2007
# Whom:         Alex Keda <admin@lissyara.su>
#
# $FreeBSD$
#

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

MAINTAINER= admin@lissyara.su
COMMENT=    Kernel module and program for SkyStar2, ver. ${PORTVERSION}

USE_BZIP2=  yes
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

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

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64
.endif

.include <bsd.port.post.mk>