summaryrefslogtreecommitdiff
blob: 2118814351238ca67bcc3336c8bf15b31b11429c (plain)
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
diff --git a/setup.py b/setup.py
index 197f827..b39c129 100644
--- a/setup.py
+++ b/setup.py
@@ -112,7 +112,7 @@ elif sys.platform=='darwin':
                     ]
         ext_comp_args=[]
         ext_link_args=[
-	               "-L/usr/X11R6/lib", "-lGL", "-lXxf86vm",
+	               "-L@GENTOO_PORTAGE_EPREFIX@/usr/lib", "-lGL", "-lXxf86vm",
                    "-L"+EXT+"/lib", "-lpng", "-lglut", "-lfreetype"
                    ]
 #============================================================================
@@ -120,7 +120,7 @@ else: # linux or other unix
     inc_dirs=["ov/src",
               "layer0","layer1","layer2",
               "layer3","layer4","layer5",
-              "/usr/include/freetype2",
+              "@GENTOO_PORTAGE_EPREFIX@/usr/include/freetype2",
 #                 "/users/warren/ext/include",
 # VMD plugin support
 #              "contrib/uiuc/plugins/include",
@@ -131,7 +131,7 @@ else: # linux or other unix
           ]	
     pyogl_libs = ["GL","GLU","glut"]
     lib_dirs=[
-        "/usr/X11R6/lib",
+        "@GENTOO_PORTAGE_EPREFIX@/usr/lib",
 #        "/users/warren/pymol/ext/lib"
         ]
     def_macros=[("_PYMOL_MODULE",None),