mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
cvsps: Fix build.
- Patch makefile to include libnetwork and libbsd. - Adjust recipe accordingly.
This commit is contained in:
@@ -17,6 +17,8 @@ REVISION="1"
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PATCHES="cvsps-2.2b1.patchset"
|
||||
|
||||
PROVIDES="
|
||||
cvsps$secondaryArchSuffix = $portVersion
|
||||
cmd:cvsps = $portVersion
|
||||
@@ -37,7 +39,7 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
CC="gcc -lnetwork" make $jobArgs
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
|
||||
35
dev-vcs/cvsps/patches/cvsps-2.2b1.patchset
Normal file
35
dev-vcs/cvsps/patches/cvsps-2.2b1.patchset
Normal file
@@ -0,0 +1,35 @@
|
||||
From 7747f8486767294df3ecc2b70a4f62d89782bd17 Mon Sep 17 00:00:00 2001
|
||||
From: Rene Gollent <rene@gollent.com>
|
||||
Date: Sat, 19 Sep 2015 23:17:53 -0400
|
||||
Subject: cvsps: Adjust makefile to include required libs.
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 2bbc374..0ff7db6 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
MAJOR=2
|
||||
MINOR=2b1
|
||||
CC?=gcc
|
||||
-CFLAGS?=-g -O2 -Wall
|
||||
+CFLAGS?=-g -O2 -Wall
|
||||
CFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\"
|
||||
prefix?=/usr/local
|
||||
OBJS=\
|
||||
@@ -18,10 +18,10 @@ OBJS=\
|
||||
cvs_direct.o\
|
||||
list_sort.o
|
||||
|
||||
-all: cvsps
|
||||
+all: cvsps
|
||||
|
||||
cvsps: $(OBJS)
|
||||
- $(CC) -o cvsps $(OBJS) -lz
|
||||
+ $(CC) -o cvsps $(OBJS) -lz -lbsd -lnetwork
|
||||
|
||||
install:
|
||||
[ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user