pkgsrc/biology/plink/patches/patch-Makefile
asau 979be07cda Import PLINK 1.07 as biology/plink
From Jason Bacon via pkgsrc-wip.


PLINK is a free, open-source whole genome association analysis
toolset, designed to perform a range of basic, large-scale
analyses in a computationally efficient manner.

The focus of PLINK is purely on analysis of genotype/phenotype
data, so there is no support for steps prior to this (e.g. study
design and planning, generating genotype or CNV calls from raw
data). Through integration with gPLINK and Haploview, there is
some support for the subsequent visualization, annotation and
storage of results.
2012-09-14 17:46:23 +00:00

76 lines
1.7 KiB
Text

$NetBSD: patch-Makefile,v 1.1.1.1 2012/09/14 17:46:23 asau Exp $
--- Makefile.orig 2009-10-10 16:00:20.000000000 +0000
+++ Makefile
@@ -19,32 +19,32 @@
# ---------------------------------------------------------------------
# Set this variable to either UNIX, MAC or WIN
-SYS = UNIX
+SYS ?= UNIX
# Leave blank after "=" to disable; put "= 1" to enable
WITH_R_PLUGINS = 1
WITH_WEBCHECK = 1
-FORCE_32BIT =
+FORCE_32BIT ?=
WITH_ZLIB = 1
-WITH_LAPACK =
-FORCE_DYNAMIC =
+WITH_LAPACK ?=
+FORCE_DYNAMIC ?=
# Put C++ compiler here; Windows has it's own specific version
CXX_UNIX = g++
CXX_WIN = c:\bin\mingw\bin\mingw32-g++.exe
# Any other compiler flags here ( -Wall, -g, etc)
-CXXFLAGS =
+CXXFLAGS ?=
# Misc
-LIB_LAPACK = /usr/lib/liblapack.so.3
-
+LIB_LAPACK ?= /usr/lib/liblapack.so.3
+LIBDL ?= -ldl
# --------------------------------------------------------------------
# Do not edit below this line
# --------------------------------------------------------------------
-CXXFLAGS += -O3 -I.
+CXXFLAGS += -I.
OUTPUT = plink
# Some system specific flags
@@ -59,7 +59,7 @@ endif
ifeq ($(SYS),UNIX)
CXXFLAGS += -DUNIX
- CXX = $(CXX_UNIX)
+ CXX ?= $(CXX_UNIX)
ifndef FORCE_DYNAMIC
CXXFLAGS += -static
endif
@@ -125,10 +125,10 @@ CXXFLAGS += -DWITH_R_PLUGINS
HDR += sisocks.h Rsrv.h Rconnection.h config.h
SRC += r.cpp Rconnection.cpp
ifeq ($(SYS),MAC)
-LIB += -ldl
+LIB += ${LIBDL}
endif
ifeq ($(SYS),UNIX)
-LIB += -ldl -lcrypt
+LIB += ${LIBDL} -lcrypt
endif
endif
@@ -151,7 +151,7 @@ OBJ = $(SRC:.cpp=.o)
all : $(OUTPUT)
$(OUTPUT) :
- $(CXX) $(CXXFLAGS) -o $(OUTPUT) $(OBJ) $(LIB)
+ $(CXX) -o $(OUTPUT) $(OBJ) $(LIB)
$(OBJ) : $(HDR)