cvsps: Fix build.

- Patch makefile to include libnetwork and libbsd.
- Adjust recipe accordingly.
This commit is contained in:
Rene Gollent
2015-09-19 23:21:45 -04:00
parent 2de62091a4
commit 8b7f05d581
2 changed files with 38 additions and 1 deletions

View File

@@ -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()

View 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